|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
print problemby Punto (Scribe) |
| on Dec 21, 2001 at 01:04 UTC ( [id://133694]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.Punto has asked for the wisdom of the Perl Monks concerning the following question:
Hi..
I have a loop that does a sleep(1); and then a number of calculations, and then I display the results like this: print "$result1 - $result2 - $result3\r"; I'm using \r because I want it to be overwritten on the next print, but it doesn't print anything.. if I change to \n, it works fine.. Do I have to flush a buffer or something? Thanks..
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||