in reply to Run Perl 5 in the Browser!

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>

Nice, but you omitted an important line from the example:

<script src="webperl.js"></script>

I did not try it yet, but I like the idea. Running Perl in the browser is nothing new, it is part of ActivePerl since at least 2001, but their implementation is limited to some versions of the IE, and it is by default limited to the local net, because the perl interpreter was not limited to the browser context (i.e. you could run any code as the user running the IE by simply making the user visit a website containing perl code). See also Re^2: Can Perl do anything Java can do?.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: Run Perl 5 in the Browser!
by haukex (Archbishop) on Aug 19, 2018 at 11:08 UTC

    Thanks, you're right, the example is just showing the "what I'd like to be able to do part" - I updated the node to the include webperl.js part too.