CristianLuca
Programmer
I've tryed to escape the first "*" but it does not work either("\*/1 * * ....)
....
my $cronjobPattern = "*/1 * * * * /usr/bin/perl \$pathHome/test.pl 10";
...
if ($cronjob =~ m/$cronjobPattern/g) {
...
}
...
ERROR : Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HERE /1 * * * * /usr/bin/perl $pathHome/test.pl 10/ at monitor_crawlers.pl line 40.
Thank you in advance ,
Cristian
....
my $cronjobPattern = "*/1 * * * * /usr/bin/perl \$pathHome/test.pl 10";
...
if ($cronjob =~ m/$cronjobPattern/g) {
...
}
...
ERROR : Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HERE /1 * * * * /usr/bin/perl $pathHome/test.pl 10/ at monitor_crawlers.pl line 40.
Thank you in advance ,
Cristian