The other way is to use \b.
use strict; use warnings; $| ++; my $msg = ""; for (1..100) { $msg = "\b" x length($msg) . $_; print $msg; sleep 1; }
In reply to Re: Dynamically overwriting a line of text on stdout console
by pg
in thread Dynamically overwriting a line of text on stdout console
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |