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
    That's actually an excellent catch.

    In my defence I will state that the putty I have to use at work does not have the inconsolata font I normally use to prevent me from making those mistakes so often.