> Whenever I've wanted a Perl REPL, I've used the debugger,

let's first name some problems with that statement *

I'm personally using a patched version, because I really like the

The point that stopped me from publishing a forked version was that POD and code is so deeply interwoven, that I couldn't easily fix the command loop.²

So I delayed the project till I have a POD parser ready that creates a separate perl5db.pod.

Even scarier is that perl5db is using code in the main:: namespace which is not really obvious for me. I think it even dates back to the Perl4 era.

Saying this I really advocate fixing it, extending the debugger to a real REPL which comes out-of-the-box would be a great plus for the Perl universe and could even lead to a Shell replacement.

For those interested IPL: PDF and code

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

PS: you failed to mention other projects

footnotes

*) to have some criteria for "good" REPLs

2) The command loop, that's several hundred lines of code with regexes "parsing" commands ... but each block included the POD for that command.

How do you refactor linear code where the documentation depends on the order of the code?

I'm a fan of literate programming, but that's a good example of how not to do it. If you keep documentation close to a subroutine, you can still move that sub, not so when interspersed linear code.


In reply to Re: Perl REPLs by LanX
in thread Perl REPLs by davies

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.