in reply to Re: Execute a Perl script in a browser
in thread Execute a Perl script in a browser

I took a look at dancer and HTTP::Server::Simple. Tell me if I am wrong, but I think when I use Dancer I still have to launch the script from the command line and then use the browser to connect to the address told by Dancer, right?
HTTP::Server::Simple may be too complex to me... but if I will not find a simpler solution, I will try it.

  • Comment on Re^2: Execute a Perl script in a browser

Replies are listed 'Best First'.
Re^3: Execute a Perl script in a browser
by choroba (Cardinal) on Apr 21, 2016 at 15:30 UTC
    Yes, you have to start the server. But you only need to start it once, you can then query it many times. You might need to restart it when the code changes, though.
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

      All right, thank you very much.