in reply to Re: Perl 500 Internal Server Error
in thread Perl 500 Internal Server Error
You're spot on, something else is causing it. In my experience, I found that the print "content-type: text/html\n\n"; script has to be my second line of the script, right after #!/usr/bin/perl, as I will mostly catch anything else after that.
Run the perl script manually, and look at the output. See if anything obvious pops up. Secondly, change your code, and look at anything between the start of the script and where you have the print "content-type: piece.
There are only so many things that can cause a CGI to crash. The most difficult ones, is when a script does something, it fails, and you don't do any error checking on that. That will keep you busy for a while, especially if you start dealing with DBI's, where you get database errors before you even print the display out.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Perl 500 Internal Server Error
by tohann (Sexton) on Oct 29, 2002 at 13:36 UTC |