[Kc] February Meeting Devel:;REPL

Sterling Hanenkamp sterling at hanenkamp.com
Wed Feb 11 14:32:40 PST 2009


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 <amoore at mooresystems.com>wrote:

> 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
> _______________________________________________
> kc mailing list
> kc at pm.org
> http://mail.pm.org/mailman/listinfo/kc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kc/attachments/20090211/d1b9fcfe/attachment.html>


More information about the kc mailing list