in reply to Perl/CGI scripts

if you disable output buffering, the pages should be sent to the browser more or less as soon as you print them. Note that the server can also wait for some minimal amount of output before sending anything, and that some browsers will not show tables (and maybe other elements too) until they're fully recieved.

To disable output buffering put

$|=1;
at the top of your script.

See also perlvar.

Replies are listed 'Best First'.
Re^2: Perl/CGI scripts
by jhourcle (Prior) on Apr 29, 2005 at 11:23 UTC
Re^2: Perl/CGI scripts
by bradcathey (Prior) on Apr 29, 2005 at 18:26 UTC

    ++Joost, I can't believe I just stumbled across this at exactly the right time.

    I have never had this problem, but just switch to Pair Networks and all my Perl/CGI/HTML::Template page loads were taking forever. My customers were not happy. So, I added the $|=1 to the start of all my scripts and magic! Problem solved. Thanks.


    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot