in reply to See errors in CGI scripts using perl

Another approach to debugging a cgi is to run it from the command line. This assumes that you have shell access to the server you are debugging on. If you don't have shell access, to a production machine perhaps, set up another machine where you do have access that mimics the production machine. To make this somewhat painless, put this into your code:
use CGI qw/ -debug/;
then run the cgi from the command line. At this point you'll get:
(offline mode: enter name=value pairs on standard input)
and you can type in the parameters ( foo=555 <return> and so on, followed by a <ctrl>D to end). If things aren't going well, you'll see the error messages in your shell. If you cgi spits out a badly formated response, you'll see that. There are other tricks too, read more about it at: CGI Cheers --Freddo411

-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday