Hi,
Is it possible to print something and then replace what you have printed with a
different value?
Say I have a program that watches a logfile and prints the current number of
lines.
after sleeping for n seconds, it will print the number of lines again. But i
don't want to print it below the old output. I want to replace it with the new
output.
That is, if I have the previous output as:
"The log contains: 30 lines"
After 10 seconds, I don't want to see two lines saying:
"The log contains: 30 lines"
"The log contains: 40 lines"
Instead I only want to see:
"The log contains: 40 lines"
Is this possible without removing all other previous output? I mean Only that
particular line will change. This is commonly seen on programs which updates
their output in realtime.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/