*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"; }
In reply to Re^2: Trying to make a simple countdown timer
by maxamillionk
in thread Trying to make a simple countdown timer
by maxamillionk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |