in reply to one liner question
You assigned your line to $l (lowercased "L", a terrible variable name) but then tried to match against $1 (lowercased "!", a regex capture variable).
For the regex itself:
m/^(\d+\/\d+\/\/d+) .*/g
Using alternate delimiters reduces escaping, making the error obvious:
m!^(\d+/\d+//d+) .*!g
Also, the /g can be omitted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: one liner question
by natxo (Scribe) on Apr 21, 2017 at 20:44 UTC |