A friend of mine is working on a Perl REPL of sorts. The end goal is a full shell replacement, but it's still definitely a work in progress (I'm sure he'd appreciate help, if anyone were so inclined). It's at <a href="http://ciar.org/ttk/codecloset/">TTK's code closet</a>. I'm specifically referring to Calc; version 2 is a more finished product, but version 3 is cleaner code (he tells me; I haven't actually looked at the source yet). Anyway, it might be closer to the kind of REPL other languages have; it's generally more featureful than other Perl REPL offereings (at least one's he has explored, including Devel::REPL). It's not a replacement for the debugger (no explicit break/continue/next type of functionality, for instance), but should be a reasonably good REPL.<br>
<br>My $0.005. YMMV.<br><br><div class="gmail_quote">On Thu, Nov 20, 2008 at 5:22 PM, Alex Feinberg <span dir="ltr"><<a href="mailto:alex@strlen.net">alex@strlen.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I use Perldb myself quite a lot as a REPL. Combined with<br>
XML::Simple/JSON::Syck and LWP it's a very useful way to debug web<br>
services (e.g. use XML::Simple; use LWP::Simple; x<br>
XMLin(get('<a href="http://foo.com/status.xml" target="_blank">http://foo.com/status.xml</a>') ; )<br>
<br>
<br>
Thing is perldb is a debugger, rather than a REPL tool. So if it<br>
were to have REPL like features, it'd mean giving up ability to work<br>
as a debugger:<br>
<br>
It would be useful if perldb allowed me to just paste example of<br>
code as I trouble-shot it, with regards for lexical scoping and use<br>
strict.<br>
<br>
If I wanted to try out this segment on REPL -<br>
my $foo = 'hi';<br>
print $foo;<br>
<br>
I'd have to do it as a single line - which makes sense when you're<br>
dealing with in the content of a debugger.<br>
<br>
Perhaps there is a way to do it - but I am not aware of it. In<br>
addition support for emacs/vi keybindings (and other simple editing)<br>
would be somewhat nice.<br>
<br>
I should look into one of the many third-party REPL tools for<br>
this.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On Thursday, 20 November 2008 at 11:31:55 -0800, Joe Brenner wrote:<br>
> Paul Makepeace <<a href="mailto:Paul.Makepeace@realprogrammers.com">Paul.Makepeace@realprogrammers.com</a>> wrote:<br>
> > Joe Brenner <<a href="mailto:doom@kzsu.stanford.edu">doom@kzsu.stanford.edu</a>> wrote:<br>
> > > Rich Morin <<a href="mailto:rdm@cfcl.com">rdm@cfcl.com</a>> wrote:<br>
><br>
> > > > <snark><br>
> > > > Isn't it about time somebody created something like irb (the<br>
> > > > interactive ruby interpreter) for Perl? Sorry, I forgot; the<br>
> > > > developers are all busy (re-)designing Perl 6...<br>
> > > > </snark><br>
> > ><br>
> > > What would an irb get you that the perldb doesn't?<br>
> ><br>
> > A less unpleasant interface,<br>
> ><br>
> > <a href="http://london.pm.org/pipermail/london.pm/Week-of-Mon-20081110/015663.html" target="_blank">http://london.pm.org/pipermail/london.pm/Week-of-Mon-20081110/015663.html</a><br>
><br>
> I see, I would say the main advantage from my point of view is that irb<br>
> let's you do multi-line expressions... do you do that a lot? I can't<br>
> say I see what it's for exactly.<br>
><br>
> _______________________________________________<br>
> SanFrancisco-pm mailing list<br>
> <a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
> <a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
_______________________________________________<br>
SanFrancisco-pm mailing list<br>
<a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
</div></div></blockquote></div><br>