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

I really appreciate your suggestion, but don't you think there should be an easier approach?

And if not shouldn't it be a feature request?

I tried to experiment with the < command but it seems I don't really understand how they work ...

Cheers Rolf

Replies are listed 'Best First'.
Re^5: Convenient way to use 5.10 features in perldebugger?
by james2vegas (Chaplain) on Aug 15, 2010 at 18:15 UTC
    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.
      > 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