For a while now I've been playing with safe line based evaluation of perl code over IRC, which via commans containing perl code submitted to an IRC bot, who executes the code and returns the results. This is cool and all, but recently it ocurred to me that I could use much the same code and place it on the internet, perhaps with more usefulness. Around that time integral wrote Devel::EvalContext which allowed one to save the lexical state of an eval. The combination naturally led to a Web Based REPL, which stands for "Read Eval Print Loop".

Read Eval Print Loops are commonly found on the CLI for various programming languages, examples being ruby and python I believe. perl -de1 is more or less an example of a perl REPL.

In any case, I thought I'd show off my new repl by linking it here, check it out at: http://erxz.com:8002.

So far it's stood up to fairly extensive security testing, and should be fully secure, but please let me know if something doesn't look right to you.

Update: Upvotes are all well and good, but I'd much prefer actual replies! Preferably with suggestions, either for the interface or for some actual use for this thing!

In reply to Web based perl REPL by BUU

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.