Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Typeover outputby L8on (Acolyte) |
on Jan 12, 2005 at 21:51 UTC ( [id://421794]=perlquestion: print w/replies, xml ) | Need Help?? |
L8on has asked for the wisdom of the Perl Monks concerning the following question:
I have been wondering about this off & on for quite a while and something today made me think of it again, so I'll ask this time. Is there anyway to overwrite a line of output on a console with a new line of text? Say, for example, if I was walking through a file one line at a time and wanted to output a statement of the current line number I would use the following: For each line of the above, the output would output: processing line: 1 2 3 4 5 6 7 8 ....... x What I was curious about, is there a way to just replace the line so that only $linenum changes on output? ( e.g. 1 changes to 2 and so on ) Thanx in advance. l8on
Back to
Seekers of Perl Wisdom
|
|