This may be obvious, but what happens when you perl -c yourscript.pl?
That should give you some useful information if it's a compile error. And I would be stunned if your server doesn't have error logs. If it's apache, check /usr/local/apache/logs/errors.