Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 about the Monastery: (12)
As of 2015-01-29 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (244 votes), past polls