(Might be a runaway multi-line // string starting on line 808)
Yes, reading the error message can be helpful. I cannot duplicate the "runaway" suggestion from the command line, but the problem with
is clearly due to a runaway // in a previous statement.c:\@Work\Perl\monks>perl -wMstrict -le "my $file = '/Devel'; print 'hi' if 'xhix' =~ /hi; print 'ho'; print 'he' if $file =~ q|/Devel|; " Bareword found where operator expected at -e line 1, near "Devel" (Missing operator before Devel?) syntax error at -e line 1, near "Devel" Execution of -e aborted due to compilation errors.
BTW: Use of a string with a =~ binding operator is kosher
if the quoted string is properly delimited!c:\@Work\Perl\monks>perl -wMstrict -le "my $file = 'foo/Devel/bar'; print 'match' if $file =~ q|/Devel/|; " match
Give a man a fish: <%-{-{-{-<
In reply to Re: Error in coverage module
by AnomalousMonk
in thread Error in coverage module
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |