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.
In reply to Re: one liner question
by Anonymous Monk
in thread one liner question
by natxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |