Punto has asked for the wisdom of the Perl Monks concerning the following question:
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..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print problem
by {NULE} (Hermit) on Dec 21, 2001 at 06:45 UTC | |
by hossman (Prior) on Dec 21, 2001 at 07:32 UTC | |
|
Re: print problem
by mr_mischief (Monsignor) on Dec 21, 2001 at 07:39 UTC | |
|
Re: print problem
by Foo::Bar (Acolyte) on Dec 21, 2001 at 11:06 UTC | |
|
Re: print problem
by dmmiller2k (Chaplain) on Dec 21, 2001 at 20:43 UTC | |
by Anonymous Monk on Dec 22, 2001 at 06:51 UTC | |
by chromatic (Archbishop) on Dec 24, 2001 at 00:07 UTC | |
|
Re: print problem
by k2 (Scribe) on Dec 22, 2001 at 16:17 UTC |