Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Ensuring the user doesn't have to wait for a CGI to finish

by tune (Curate)
on Jul 11, 2002 at 16:39 UTC ( #181061=note: print w/ replies, xml ) Need Help??


in reply to Ensuring the user doesn't have to wait for a CGI to finish

You have to add the following line at the beginning of your script:

$|=1;
It is setting printing into direct mode (turning buffer off), so perl will flush out everything in realtime.

--
tune


Comment on Re: Ensuring the user doesn't have to wait for a CGI to finish
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://181061]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-12-26 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls