in reply to An Egg(?) Timer

just a little aesthetic thing....

you print a '.' each second, but if you set the timer for... a long time, the screen fills with dots and you sort of lose track (reminds me of using dos ftp with hashes on and transferring a 10 meg file). Anyway, I'd maybe think about maybe just printing out the time.

print "\b" x length(localtime), scalar(localtime);

I'm sort of a nit-picker on that stuff

Replies are listed 'Best First'.
(bbfu) (sec. remaining) Re2: An Egg(?) Timer
by bbfu (Curate) on Oct 10, 2001 at 01:23 UTC

    Or even the number of seconds remaining (untested):

    print "\b" x length($time-$_+1), $time-$_;

    Also, TGI should probably make sure that autoflush is on (++$|), though s?he doesn't seem to be having a problem with it thus far...

    bbfu
    Seasons don't fear The Reaper.
    Nor do the wind, the sun, and the rain.
    We can be like they are.