in reply to same 500 server error problem shorter question
What web server are you using?
Have you checked the logs?
Perhaps you don't have access to the web server or its logs; this is not entirely uncommon, as I understand it.
But understand that even though the script is meant to run through CGI, you still have ways of testing the script. Chief and most basic among these means is perl -c script.pl. The -c switch will not attempt to run script.pl, but simply test its syntax and return its 'compilability".
Running this against your script, I see
perhaps you meant return substr $start, length $line;?syntax error at C:\script.pl line 15, near "result substr"
Also, please, for your own sake, add a die clause to your open line : open FILE, "user/test" || die "Can't open file! Perl says '$!'".
Talk with your web server admin and see if you can get access to the log files. If not, learn to rely on CGI's command line mode, or set up a similar server on a machine you control.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (boo) debug-fu!
by virtualsue (Vicar) on Jun 07, 2001 at 12:55 UTC |