in reply to Re^3: Perl and html
in thread Perl and html

I thought in a solution: to execute a php script and call the perl script. That way I could submit the page to itself. Problem: I'm trying the command $result = shell('perl script.pl $arg'); with arg equal to, for instance, 'number=1000'. It' not working... :(

Replies are listed 'Best First'.
Re^5: Perl and html
by Anonymous Monk on Sep 05, 2015 at 08:20 UTC

    I thought in a solution: to execute a php script and call the perl script.

    :/

    You're not the only one to think of that solution

    I think its such a great idea, I often suggest they do one better and use this workaround

    If you want http://example.com/foo.html to be a an alias for /cgi-bin/program configure your web server to make it a program