Pathologically Eclectic Rubbish Lister | |
PerlMonks |
How to dynamically update value in STDOUT?by bowei_99 (Friar) |
on Nov 05, 2007 at 01:38 UTC ( [id://648935]=perlquestion: print w/replies, xml ) | Need Help?? |
bowei_99 has asked for the wisdom of the Perl Monks concerning the following question:
How can I dynamically update a value on STDOUT? I have a value that uses File::Tail to parse a log and return a valu each time, which is working. The idea is that it gives the user a realtime summary status of the application. However, when displaying the results, I don't really need to show a history of values, only the current value on STDOUT. In other words, instead of printing out the following as a string: 1 3 10 20 it should print 1, then replace that with a 3, then replace that with a 10, then with 20, as it parses the file and determines the value. I had thought that using would work, but it seems to be for something else. What is the suggested way of doing this? -- Burvil
Back to
Seekers of Perl Wisdom
|
|