in reply to help with sleep()
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); } }
|
|---|