-
Notifications
You must be signed in to change notification settings - Fork 605
Closed
Labels
Closable?We might be able to close this ticket, but we need to check with the reporterWe might be able to close this ticket, but we need to check with the reporter
Description
$ cat $i.pl
for ( 0 .. $ ) {
#ho hum
if ( $_ % $n[0] || $_ % $n[1] ) { next; }
push @o, $_;
}
$ perl -c i.pl
syntax error at i.pl line 4, near "if"
i.pl had compilation errors.
Better would be
syntax error at i.pl line 1, near "$"
Else the user spends over five minutes trying to debug
if ( $_ % $n[0] || $_ % $n[1] ) { next; }
(True story. In fact the earlier message was
syntax error ... near "next if", causing me to
see if changing next if ... to if () {next}
would help.
What I am trying to say is this time the wild
goose chase was so long that I should have
brought sandwiches.) perl/5.38.2
Metadata
Metadata
Assignees
Labels
Closable?We might be able to close this ticket, but we need to check with the reporterWe might be able to close this ticket, but we need to check with the reporter