Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Problem with print

by Zaxo (Archbishop)
on May 10, 2007 at 05:41 UTC ( [id://614549]=note: print w/replies, xml ) Need Help??


in reply to Re: Problem with print
in thread Problem with print

RL has nailed it. Compare,

$ perl -e'sleep 1, print "\r$_" for 1..10; print $/'
to,
$ perl -e'$| = 1; sleep 1, print "\r$_" for 1..10; print $/'

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^3: Problem with print
by digitalpbk (Initiate) on May 10, 2007 at 09:55 UTC
    thnx guys solved it adding this solves it autoflush STDOUT 1;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found