> "SS" == Sooraj S writes:
SS> Hi,
SS> Could any one tell me what is wrong with my code? It does not time out
SS> after 5 seconds which is what i need. It remains in the infinit loop.
SS> while (1) { };
your bug is here. you never exit the loop.
SS> eval
SS> {
SS> alarm
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 sched
> 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.
>
> Thanks
> Will
>
Generally this is provided by the underlying system's scheduler. cron
on *nix, something else on windo
On Jun 24, 2004, at 9:33 AM, 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.
You could always sleep() for a day between runs, but that seems far too
clumsy