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..
In reply to print problem by Punto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |