A 500 error usually indicates one of these problems:
- Wrong permissions: Set script to 755
- Wrong Perl path: Check the first line of the script:
#!/usr/bin/perl
- Syntax error: Test the script from command line:
perl -c script.pl
- Line ending issues: Upload in ASCII mode, not binary
- Missing modules: Check if required Perl modules are installed
Tip: Check your server's error log for the specific error message.