Subject: | No dispatching sub provided at Cron.pm line 362 |
Error message:
No dispatching sub provided at C:/Perl/site/lib/Schedule/Cron.pm line 362.
use Schedule::Cron;
#my $cron = new Schedule::Cron(sub {});#work
my $cron = new Schedule::Cron();#not work
my $entry = '0 15 * * 4';
print scalar(localtime($cron->get_next_execution_time($entry)));
i only need the function get_next_execution_time