use Schedule::Cron; # Create a Cron object and assign a coderef to it my $cron = new Schedule::Cron( \&check_website ); # Establish the time interval between runs. # This follows the standard cron notation. $cron->add_entry("* * * * *"); # Run cron job. $cron->run(); sub check_website { warn "Checking website...\n"; # code }
In reply to Re: Help to infinite loop
by bruno
in thread Help to infinite loop
by Mik0r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |