in reply to Testing scripts
Perhaps something in our wonderful Tutorials section on CGI Programming could help. Maybe Troubleshooting Perl CGI scripts?
HTH,