X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCron.pm;h=4cfabc0eb07ade4c866ce8a1eded6296299b231d;hb=refs%2Fheads%2Fstaging;hp=b908af3c6751a1791ac6cf6d2785b13aaba035f2;hpb=cc9bd946788545ef87a7a6d0541fa1c47b9b034a;p=spider.git diff --git a/perl/DXCron.pm b/perl/DXCron.pm index b908af3c..4cfabc0e 100644 --- a/perl/DXCron.pm +++ b/perl/DXCron.pm @@ -68,7 +68,7 @@ sub cread $line++; chomp $l; next if $l =~ /^\s*#/o or $l =~ /^\s*$/o; - my ($min, $hour, $mday, $month, $wday, $cmd) = $l =~ /^\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.+)$/o; + my ($min, $hour, $mday, $month, $wday, $cmd) = $l =~ /^\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.+)$/; next unless defined $min; my $ref = bless {}; my $err = ''; @@ -110,7 +110,7 @@ sub parse # handle '*' values if ($val eq '*') { $ref->{$sort} = 0; - return; + return ''; } # handle comma delimited values @@ -131,7 +131,7 @@ sub parse } $ref->{$sort} = \@req; - return; + return ''; } # process the cronjobs