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

Thanks, good suggestion to generally enable all features! :)

Actually I was looking for a switch to change interactively on demand, which doesn't include changing the source ... still grateful for any suggestions! :)

Cheers Rolf

  • Comment on Re^2: Convenient way to use 5.10 features in perldebugger?

Replies are listed 'Best First'.
Re^3: Convenient way to use 5.10 features in perldebugger?
by james2vegas (Chaplain) on Aug 15, 2010 at 17:56 UTC
    Well, it isn't really changing the source, just having a local version of it, and if you have it in your PERL5LIB, enabling or disabling it is just a matter of setting or unsetting PERL5DB. Also worth noting is this is not limited to just enabling 'features' but you can add modules you use a lot in debugging (Data::Dumper, YAML, JSON, etc), or subs you write yourself.
      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

        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.