A friend of mine is working on a Perl REPL of sorts.&nbsp; The end goal is a full shell replacement, but it&#39;s still definitely a work in progress (I&#39;m sure he&#39;d appreciate help, if anyone were so inclined).&nbsp; It&#39;s at <a href="http://ciar.org/ttk/codecloset/">TTK&#39;s code closet</a>.&nbsp; I&#39;m specifically referring to Calc; version 2 is a more finished product, but version 3 is cleaner code (he tells me; I haven&#39;t actually looked at the source yet).&nbsp; Anyway, it might be closer to the kind of REPL other languages have; it&#39;s generally more featureful than other Perl REPL offereings (at least one&#39;s he has explored, including Devel::REPL).&nbsp; It&#39;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.&nbsp; YMMV.<br><br><div class="gmail_quote">On Thu, Nov 20, 2008 at 5:22 PM, Alex Feinberg <span dir="ltr">&lt;<a href="mailto:alex@strlen.net">alex@strlen.net</a>&gt;</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&#39;s a very useful way to debug web<br>
services (e.g. use XML::Simple; use LWP::Simple; x<br>
XMLin(get(&#39;<a href="http://foo.com/status.xml" target="_blank">http://foo.com/status.xml</a>&#39;) ; )<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&#39;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 = &#39;hi&#39;;<br>
print $foo;<br>
<br>
I&#39;d have to do it as a single line - which makes sense when you&#39;re<br>
dealing with in the content of a debugger.<br>
<br>
 &nbsp; &nbsp;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>
 &nbsp; &nbsp;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>
&gt; Paul Makepeace &lt;<a href="mailto:Paul.Makepeace@realprogrammers.com">Paul.Makepeace@realprogrammers.com</a>&gt; wrote:<br>
&gt; &gt; Joe Brenner &lt;<a href="mailto:doom@kzsu.stanford.edu">doom@kzsu.stanford.edu</a>&gt; wrote:<br>
&gt; &gt; &gt; Rich Morin &lt;<a href="mailto:rdm@cfcl.com">rdm@cfcl.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; &gt; &gt; &lt;snark&gt;<br>
&gt; &gt; &gt; &gt; Isn&#39;t it about time somebody created something like irb (the<br>
&gt; &gt; &gt; &gt; interactive ruby interpreter) for Perl? &nbsp;Sorry, I forgot; the<br>
&gt; &gt; &gt; &gt; developers are all busy (re-)designing Perl 6...<br>
&gt; &gt; &gt; &gt; &lt;/snark&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; What would an irb get you that the perldb doesn&#39;t?<br>
&gt; &gt;<br>
&gt; &gt; A less unpleasant interface,<br>
&gt; &gt;<br>
&gt; &gt; <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>
&gt;<br>
&gt; I see, I would say the main advantage from my point of view is that irb<br>
&gt; let&#39;s you do multi-line expressions... do you do that a lot? &nbsp;I can&#39;t<br>
&gt; say I see what it&#39;s for exactly.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SanFrancisco-pm mailing list<br>
&gt; <a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
&gt; <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>