Debugging Perl script 500 Internal Server Error
- Make sure the first line of the script which contains the path to Perl is correct: #!/usr/bin/perl -w
- for further debugging, add these lines after the path to perl use strict; use warnings; #redirect errors to web page use CGI::Carp qw(fatalsToBrowser);
More details at: Perl101 or Mastering Perl