in reply to Avoid newline echoing so I can capture a line and reprompt over it
#!perl -w $| = 1; use strict; use Time::HiRes qw( sleep ); for ( 1 .. 100 ) { print "\r \r${_}% Complete."; sleep( 0.33 ); }
Also have a look at the thread: How do you clear the current line?
Neil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Avoid newline echoing so I can capture a line and reprompt over it
by hlen (Beadle) on Sep 02, 2004 at 06:59 UTC | |
by neilh (Pilgrim) on Sep 02, 2004 at 07:05 UTC | |
by hlen (Beadle) on Sep 02, 2004 at 07:14 UTC | |
by japhy (Canon) on Sep 02, 2004 at 13:26 UTC | |
by hlen (Beadle) on Sep 02, 2004 at 14:47 UTC | |
by japhy (Canon) on Sep 02, 2004 at 13:18 UTC |