Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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

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 scrutinizing the Monastery: (4)
As of 2016-07-25 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (222 votes). Check out past polls.