Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How to UPDATE rather than append to STDOUT?

by broquaint (Abbot)
on Jun 05, 2002 at 09:39 UTC ( [id://171773]=note: print w/replies, xml ) Need Help??


in reply to How to UPDATE rather than append to STDOUT?

Short of using the various terminal manipulation tools you could use the funky backspace character \b
$|++; print " "; for (0..20) { select undef, undef, undef, 0.25; print "\b\b"; printf "%2d", $_; } print "\n";
That isn't the greatest example but I'm sure you get the picture ;-)
HTH

_________
broquaint

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://171773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-18 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found