Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: sleep problem !

by rnahi (Curate)
on Sep 22, 2005 at 09:50 UTC ( #494051=note: print w/ replies, xml ) Need Help??


in reply to sleep problem !

Your standard output needs to be unbuffered.

Add this line before your loop:

$|++;

And you should get what you want.

See Suffering from buffering (off site) for a thorough explanation.


Comment on Re: sleep problem !
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-12-27 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (177 votes), past polls