[Kc] February Meeting Devel:;REPL

Andrew Moore amoore at mooresystems.com
Wed Feb 11 10:54:59 PST 2009


On Wed, Feb 11, 2009 at 11:45 AM, David Nicol <davidnicol at gmail.com> wrote:
> What's the advantage of Devel::REPL over using the command line
> switches to make your own REPL?
>
>  perl -nle 'print eval $_'
>
> Well, that won't buffer open curlies, so that's one thing.  Does
> Devel::REPL gracefully handle scoping and open contexts and stuff like
> that?

Yeah, it does this a lot better:

amoore at titan:~$ perl -nle 'print eval $_'
my $foo = 5;
5
$foo++
0

-A


More information about the kc mailing list