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


in reply to Missing $ on loop variable

I guess this must be a bug in that particular sub-version of perl. I don't have a copy of 5.6.1 handy to test it on, and it's even possible that Sun shipped a non-standard version.

Does anyone else remember why there's a special error message for missing $ on loop variable, rather than it just being a generic syntax error?

Update: My memory is faulty.