in reply to Error in coverage module
(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: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error in coverage module
by 1nickt (Canon) on Oct 15, 2019 at 22:57 UTC | |
by AnomalousMonk (Archbishop) on Oct 16, 2019 at 00:02 UTC | |
by LanX (Saint) on Oct 16, 2019 at 12:40 UTC | |
|
Re^2: Error in coverage module
by ovedpo15 (Pilgrim) on Oct 17, 2019 at 09:49 UTC | |
by AnomalousMonk (Archbishop) on Oct 17, 2019 at 15:03 UTC |