Have you ever wanted to do this?

<html> <head> <title>Hello, Perl World!</title> <script type="text/perl"> print "Hello, Perl World!\n"; </script> </head> <body></body> </html>

Well, now you can!* :-)

I just released what I'm calling WebPerl - please see the website for all the documentation, downloadable demo, and source code. It's still very much in beta, and your feedback is very welcome!

Update 3: A full talk on WebPerl from YAPC::EU 2019 in Rīga. You can find the full list of links and talks at https://webperl.zero-g.net/notes.html. /Update 3

I gave a lightning talk on it yesterday at YAPC::EU 2018 in Glasgow, you can see the recording of the live stream here (link should go to 8h9m40s). Update: The video seems to have gone down, unfortunately. Will update once something is back up, for now the website contains all the documentation. Update 2: Video is back up, thanks for pointing it out, Corion! New Video Link (link should go to 8h12m)

* Update: What you need to do to make the above example work is download WebPerl, put the files in the same directory as the HTML file, and add <script src="webperl.js"></script> in the above HTML - then you should get the output of the print in your browser's JavaScript console. The website also gives some more "quick start" instructions.

Update 2: I have since posted a few more nodes on WebPerl:


In reply to Run Perl 5 in the Browser! by haukex

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.