in reply to Re: Re: Error Handling Misconception
in thread Error Handling Misconception

Make sure a header goes out to the browser before the die message. If your code dies before it had the chance to print the header, then you will likely get an error. I susally just do this at the beginning of my cgi:
print "Content-type: text/html\n\n";
Hope that helps,
selk