in reply to Dynamically overwriting a line of text on stdout console
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; } [download]