Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Convenient way to use 5.10 features in perldebugger?

by james2vegas (Chaplain)
on Aug 15, 2010 at 18:15 UTC ( [id://855159]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Convenient way to use 5.10 features in perldebugger?
in thread Convenient way to use 5.10 features in perldebugger?

Well I think it should have been added to the default perl5db.pl when the feature pragma was first written, but perhaps we'll see that still. What issues are you having with pre-prompt commands? It seems they have their own separate scope too, so setting features here is also ineffective.

Replies are listed 'Best First'.
Re^6: Convenient way to use 5.10 features in perldebugger?
by LanX (Saint) on Aug 15, 2010 at 18:20 UTC
    > What issues are you having with pre-prompt commands?

    shouldn't

    < use feature "say" work?

    or shouldn't

    < print "huhu" show a message?

    UPDATE:

    DB<3> < print "huhu" DB<4> DB<4> << pre-perl commands: << -- print "huhu" DB<5> h < < ? List Perl commands to run before each prompt. < expr Define Perl command to run before each prompt. << expr Add to the list of Perl commands to run before each pro +mpt. < * Delete the list of perl commands to run before each + prompt.

    Cheers Rolf

      Sadly, no, they have their own scope:
      DB<9> < my $f = 42; DB<10> x $f 0 undef DB<11> << local $g = 15; DB<12> x $g 0 undef
        not a matter of scope...

        DB<32> < $main::a++ DB<33> print $main::a 5 DB<34> print $main::a 5 DB<35> print $main::a 5

        maybe the use is restricted to real debugging (breakpoints and so on ..) and not meant for interactive shells.

        Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://855159]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2024-04-23 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found