a few strategies.....
1 - make sure your syntax works from a command prompt
Code:
C:\perl -c your_code.cgi =return=
That will check your syntax without running the code.
2 - Instead of using the 'die' function, use a small
sub routine to report errors. Like,
open(FILE,"<Some_file"

or
oooops("Failed to open Some_file, $!"
;
while(<FILE>)....
close FILE;
sub oooops
{
my $error = shift;
print "<p>$error</p></body></html>";
exit;
}
Use something like this everywhere you MIGHT have a significant failure (eg. opening a file).
3 - You can run your CGI from a command prompt. Obviously,
if the output is really large then this becomes a little
tedious, but, it will allow you to see the output of your
code.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.