in reply to Re: Trying to make a simple countdown timer
in thread Trying to make a simple countdown timer
*edit* just tried and seems to work as expected.sub countdown { local $| = 1; my $int = $_[0]; while ($int > 0) { print "$int ... "; sleep 1; $int--; } print "\n"; }
|
|---|