maxamillionk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use warnings; use strict; sub countdown { my $int = $_[0]; while ($int > 0) { print "$int ... "; sleep 1; $int--; } print "\n"; } sub main { print "something happens in "; countdown (3); } &main;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to make a simple countdown timer
by jcb (Parson) on Aug 28, 2020 at 23:53 UTC | |
by maxamillionk (Acolyte) on Aug 29, 2020 at 00:12 UTC | |
|
Re: Trying to make a simple countdown timer
by kcott (Archbishop) on Aug 29, 2020 at 00:51 UTC | |
|
Re: Trying to make a simple countdown timer
by Your Mother (Archbishop) on Aug 29, 2020 at 03:55 UTC |