Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Problem with sleep command in perl

by bulk88 (Priest)
on Aug 03, 2012 at 15:50 UTC ( #985270=note: print w/ replies, xml ) Need Help??


in reply to Problem with sleep command in perl

You are using buffered stdio. Only when the buffer has a newline will it print to console. Turn on autoflush http://perldoc.perl.org/perlvar.html#$| every print should cause a console print, but this also causes higher cpu and is less efficient.

edit for mistake pointed out by another monk


Comment on Re: Problem with sleep command in perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2014-07-26 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls