LanX has asked for the wisdom of the Perl Monks concerning the following question:
Hi
PS: I know Devel::REPL, but I wonder if it's possible in the debugger...
We've been discussing recently how handy REPL (=read-eval-print loop) is in several other languages like LISP or Python.
With perl -de0 it's possible to have a perl-shell to realize the REL-portions. But whats missing is printing!
So is it possible to enclose each line in print do {...} ???
I tried to use the debugger directives < and { but couldn't achieve that typing 10/2 results in printing 5:
Did I miss any autoprint option?DB<22> 10/2 5 DB<23>
Cheers Rolf
UPDATES: similar threads I found
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using perldebugger as REPL?
by Joost (Canon) on Dec 20, 2008 at 01:20 UTC | |
by LanX (Saint) on Dec 20, 2008 at 02:22 UTC | |
by jplindstrom (Monsignor) on Dec 20, 2008 at 12:36 UTC | |
by LanX (Saint) on Dec 20, 2008 at 12:45 UTC | |
by jplindstrom (Monsignor) on Dec 20, 2008 at 13:22 UTC | |
| |
by educated_foo (Vicar) on Dec 21, 2008 at 02:42 UTC | |
by LanX (Saint) on Dec 21, 2008 at 02:51 UTC | |
Re: using perldebugger as REPL?
by Jenda (Abbot) on Dec 20, 2008 at 13:30 UTC | |
by LanX (Saint) on Dec 20, 2008 at 13:46 UTC | |
by Jenda (Abbot) on Dec 20, 2008 at 17:03 UTC |
Back to
Seekers of Perl Wisdom