You also get readline support so you can use arrow keys to go back to a
previous line and edit. You have a configurable prompt. It automatically
dumps the value of the current expression. You can configure tab completion
and a number of other plugins as well. You can also write plugins if you
want to extend the interface for some reason, so you haven't lost anything
other than having to spend some time learning how to write plugins for it.

Cheers,
Sterling

On Wed, Feb 11, 2009 at 12:54 PM, Andrew Moore <[email protected]>wrote:

> On Wed, Feb 11, 2009 at 11:45 AM, David Nicol <[email protected]>
> 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:
>
> amo...@titan:~$ perl -nle 'print eval $_'
> my $foo = 5;
> 5
> $foo++
> 0
>
> -A
> _______________________________________________
> kc mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/kc
>
_______________________________________________
kc mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/kc

Reply via email to