http://qs1969.pair.com?node_id=731680

LanX has asked for the wisdom of the Perl Monks concerning the following question:

Hi

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:

DB<22> 10/2 5 DB<23>
Did I miss any autoprint option?

Cheers Rolf

PS: I know Devel::REPL, but I wonder if it's possible in the debugger...

UPDATES: similar threads I found