in reply to Error report
in thread The Perl Fan

That's a version problem. It seems that v5.005 doesn't like things like for my$i (1..2) because there is no space between my and the loop variable ($i).

v5.6.0 has no problem with it.

Blop!