LanX has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to generally enable pragmas like use feature qw// in the perldebugger (used as a shell)?
perl -dE0 doesn't work, using a -M switch neither does.
Every line in perldb has it's own scope
so DB<1> use feature "say"; say "huhu"
won't last.
The only possibility I can think of is using one of these "automatic commands" in front of each line.
¹)
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Convenient way to use 5.10 features in perldebugger?
by james2vegas (Chaplain) on Aug 15, 2010 at 17:29 UTC | |
by LanX (Saint) on Aug 15, 2010 at 17:37 UTC | |
by james2vegas (Chaplain) on Aug 15, 2010 at 17:56 UTC | |
by LanX (Saint) on Aug 15, 2010 at 18:03 UTC | |
by james2vegas (Chaplain) on Aug 15, 2010 at 18:15 UTC | |
| |
|
Re: Convenient way to use 5.10 features in perldebugger?
by BrowserUk (Patriarch) on Aug 15, 2010 at 17:24 UTC | |
by LanX (Saint) on Aug 15, 2010 at 17:31 UTC |