Todd Chester has asked for the wisdom of the Perl Monks concerning the following question:
sub Sleep ( $ ) { my $Seconds = $_[0]; # Stone age sub's my $I = 1; print "Sleeping for $Seconds seconds ... "; until( $I > $Seconds ){ print "$I "; sleep ( 1 ); # sleep for X seconds $I += 1; } print "done\n"; }
Sleep ( 8 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need sleep walking help
by Discipulus (Canon) on Feb 01, 2017 at 08:08 UTC | |
by Todd Chester (Scribe) on Feb 01, 2017 at 08:18 UTC | |
by Discipulus (Canon) on Feb 01, 2017 at 08:22 UTC | |
by Todd Chester (Scribe) on Feb 01, 2017 at 08:31 UTC | |
by Discipulus (Canon) on Feb 01, 2017 at 08:51 UTC | |
by Marshall (Canon) on Feb 02, 2017 at 04:22 UTC | |
by Anonymous Monk on Feb 02, 2017 at 07:23 UTC | |
| |
|
Re: Need sleep walking help
by AnomalousMonk (Archbishop) on Feb 01, 2017 at 19:34 UTC |