You seem to have a rough idea for your algorithm, so I'll translate what you've written into code - remember, of course, that there's more than one way to do it. See sleep and perlop for details on code elements.
foreach my $i (0 .. 600) { print $i; if ($i % 4 == 3) { sleep(5); } }
In reply to Re: help with sleep()
by kennethk
in thread help with sleep()
by lsxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |