Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://181061]
help
Chatterbox?
[dpchrist]: How do I test if a scalar contains a typeglob?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2016-12-04 20:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (69 votes). Check out past polls.