If you are saying that your script works when you run it on the remote server, then I don't think this is a Perl issue. Perhaps you are not using
in the way you should. Is this one line of Perl code the entire script? I notice that the error message reports that this is on line 7 of the script. Perhaps if you provided the syntax you are executing
Hope this helps.