A variation on this would be to just clear the whole line between prints. Something like:
$|++; my $clear = "\r" . ' 'x80 . "\r"; print "quux"; sleep 1; print $clear, "foo"; sleep 1; print "\n";
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: finding visible length of string?
by sauoq
in thread finding visible length of string?
by ajr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |