in reply to REALLY PERL ??
next unless s->{ID} =~ /\d\d+/;
The "s" there is a substitution and your expression as written is unterminated (there are no matching "-"s to indicate the end). If you think perl should tell you that you are missing a $ rather than a - then you are free to suggest a method for determining that, of course.
Me? I'd avoid using variables with the same names as built-in functions where possible. Saves loads of bother.
Addendum: while attempting to reproduce your error, the syntax highlighting in my editor (vim) made it very obvious indeed where the problem lay. It's not for everyone and not necessarily all the time, but syntax highlighting can be a real bonus on occasions such as this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Really Perl?
by davies (Monsignor) on Aug 15, 2017 at 15:27 UTC | |
|
Re^2: Really Perl?
by huck (Prior) on Aug 15, 2017 at 17:28 UTC | |
by stevieb (Canon) on Aug 15, 2017 at 17:47 UTC | |
by huck (Prior) on Aug 15, 2017 at 18:07 UTC | |
by stevieb (Canon) on Aug 15, 2017 at 18:08 UTC | |
|
Re^2: Really Perl?
by Anonymous Monk on Aug 15, 2017 at 17:04 UTC |