Try something like that.my $PERIOD = 10; while (1) { my $mod = time % $PERIOD; sleep $PERIOD - $mod; print scalar localtime, "\n"; }
-- Randal L. Schwartz, Perl hacker
In reply to Re: Top of the second?
by merlyn
in thread Top of the second?
by Adam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |