in reply to Syntax error near Print
If that's the actual error message, it doesn't look like a Perl error message to me. Perhaps the code isn't getting anywhere near the perl interpreter in the first place?
Check your server configuration...
In Section
Seekers of Perl Wisdom