William Martell wrote: > Hello Group, > > Could anyone please tell me if there is a timer function in Perl. I > am trying to get some perl code to run every morning, but I am unsure > how to do it.
What platform? On Unix, you typically use cron to run jobs at scheduled times. Windows has a scheduler service that is similar. If you just want your script to run once a day or something like that, use one of these. Perl has a time() function that returns epoch seconds, and a localtime() function for converting epoch seconds to local time. You can use sleep() to pause your script for a certain number of seconds. For doing your own cron-type scheduling, you can look at Schedule::Cron on CPAN, or run the following query and explore the options: http://search.cpan.org/search?query=cron&mode=module HTH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>