Debugging Perl script 500 Internal Server Error

  1. Make sure the first line of the script which contains the path to Perl is correct:
    #!/usr/bin/perl -w
  2. 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

Properties ID: 000271   Views: 2252   Updated: 7 years ago
Filed under: