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

Hi,

That was my original idea. But the problem is the page html menu links. The html page and the script are in diferent locations...which is a mess...How c

an I give back the html page in the right place?...

Replies are listed 'Best First'.
Re^3: Perl and html
by Anonymous Monk on Sep 05, 2015 at 02:29 UTC

    Hi, That was my original idea. But the problem is the page html menu links. The html page and the script are in diferent locations...which is a mess...How can I give back the html page in the right place?...

    :) So now you know what you have to fix, fix the links

    Several approaches, mostly, have the original page simply call / redirect / link to the "program", and have the program present all the html with all the links fixed

      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... :(

        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