Perl cgi are errors are diplayed like this
“500 Internal Server Error”
It’s not useful, in tracing the your problem
Here are some points that may help you resolve the issue.
Try ASCII mode
Perl scripts are ASCII files when tranferings files from dev machine to server use ASCII mode
Change File Permissions
chmod all .pl and .cgi files
chmod +x *.cgi
chmod +x *.pl


