in reply to CGI script makes Internal Server-error
The error is on approximately line 31 of your script (give or take a few):
print(RECORD, $val);
That should be...
print(RECORD $val);
Filehandles don't have commas after them.
It's safe to assume that if you're getting an server error despite using the CGI::Carp module, you must be getting that error prior to the printing of your headers. So that usually means there's either a permissions error or a syntax error. I cut-n-pasted your code into "mytest.pl" and typed: perl -c mytest.pl. The result was a nicely formatted (ala CGI::Carp) error message reminding me that you shouldn't put commas after filehandles in print statements.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI script makes Internal Server-error
by reaction (Acolyte) on Aug 29, 2004 at 17:26 UTC | |
by bronto (Priest) on Aug 30, 2004 at 10:33 UTC |