arunhorne has asked for the wisdom of the Perl Monks concerning the following question:
Monks
I have written a perl script that reads a very large file line by line and processes it. I want to give the user some feedback, i.e. the current line. So I want to write to the console something like:
Current line is: 31721
I could do it with a print statement, but this produces a new line for each update. Is it possible to overwrite the previous line, i.e. 31721 becomes 31722 and gives the illusion of a counter and looks much neater?
Thanks,
____________Arun
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: A console output question
by Chmrr (Vicar) on Jun 18, 2002 at 10:47 UTC | |
Re: A console output question
by greenFox (Vicar) on Jun 18, 2002 at 10:51 UTC | |
Re: A console output question
by demerphq (Chancellor) on Jun 18, 2002 at 11:30 UTC | |
Re: A console output question
by strat (Canon) on Jun 18, 2002 at 11:18 UTC |
Back to
Seekers of Perl Wisdom