in reply to Top of the second?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re2: Top of the second?
by tye (Sage) on Mar 22, 2001 at 02:06 UTC | |
by merlyn (Sage) on Mar 22, 2001 at 02:26 UTC |