http://www.perlmonks.org?node_id=129200


in reply to Why do I keep getting a 500 Internal server error?

Put use CGI::Carp qw(fatalsToBrowser); near the top, or look at the error_log. Also, run `perl -c yourscript.pl` to make sure it's syntactically correct.