Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone know of a way I can REPLACE a counter in STDOUT rather than append new lines to the display.
If I knew what this was called I'd search for it :)
I want to put a counter on a status line but rather than have to drop a new line for each increment eg:
1
2
3
I'd prefer to have the counter update on the same line ie.3 replaced by 4 replaced by 5 etc?? So I don't have the display scrolling over screens and screens of text!
Is there a way to do this using standard Perl tools?
Any help is MUCH, MUCH appreciated.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to UPDATE rather than append to STDOUT?
by Dog and Pony (Priest) on Jun 05, 2002 at 09:50 UTC | |
Re: How to UPDATE rather than append to STDOUT?
by broquaint (Abbot) on Jun 05, 2002 at 09:39 UTC | |
Re: How to UPDATE rather than append to STDOUT?
by marvell (Pilgrim) on Jun 05, 2002 at 09:45 UTC | |
Re: How to UPDATE rather than append to STDOUT?
by maverick (Curate) on Jun 05, 2002 at 15:09 UTC | |
Re: How to UPDATE rather than append to STDOUT?
by greenFox (Vicar) on Jun 05, 2002 at 12:45 UTC | |
Re: How to UPDATE rather than append to STDOUT?
by Anonymous Monk on Jun 05, 2002 at 09:59 UTC | |
Re: How to UPDATE rather than append to STDOUT?
by particle (Vicar) on Jun 18, 2002 at 12:05 UTC | |
by Anonymous Monk on Oct 07, 2011 at 00:42 UTC |