in reply to Re: Need help with CGI script that won't complete running
in thread Need help with CGI script that won't complete running

I see. So I need to get the script running before mod_perl will be able to help? I don't suppose there is a way to compile a version running from the console, is there?

  • Comment on Re: Re: Need help with CGI script that won't complete running

Replies are listed 'Best First'.
Re: Re: Re: Need help with CGI script that won't complete running
by CountZero (Bishop) on Jan 26, 2004 at 19:57 UTC
    Indeed, you will only see the speed-up the second time the script runs on that interpreter.

    As a rule your scripts should run under standard CGI before you try mod-perl as there are already enough pitfalls when using mod-perl, that you do not need the errors in your script on top of that.

    As a matter of fact, when you run your script from the console it does get compiled before it is run: but when the script ends Perl wipes it memory so next time you start afresh. Only mod-perl is able to "remember" the compiled script.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law