Keep It Simple, Stupid | |
PerlMonks |
Re: Perl Cron Daemonby zek152 (Pilgrim) |
on Jun 02, 2011 at 14:58 UTC ( [id://907813]=note: print w/replies, xml ) | Need Help?? |
The code below will print "Event @ $sec" if the time is either :00 or :01. I don't know how taxing it is on the computer. I think that sleep does an alarm + pause call so it shouldn't be spin waiting. The reason for the sleep(30); is so that there is an additional time to correct for error due to sleep(.).
In Section
Seekers of Perl Wisdom
|
|