http://www.perlmonks.org?node_id=249749


in reply to Array Trouble!

It would be better not to use '$l' (dollar-ell) as a variable name -- especially in the neighborhood of a regex. It looks too much like '$1' (dollar-one) which has special use in regexes with capturing parentheses.