I'm having trouble with the ampersand between the "<<" and the "EOT". So is Perl 5.6.1:
Operator or semicolon missing before &EOT at test.pl line 4. Ambiguous use of & resolved as operator & at test.pl line 4.And then there's this:
Can't modify scalar in chomp at test.pl line 4, near "&"At least, it should compile. IMO.