http://www.perlmonks.org?node_id=85692

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a script that, when pulled up from a web browser, does a little processing, and then prints a confirmation of what it did in an html page. Now, The processing on the server goes fine, but when it tries to print the html page, i get a 500 Internal Server Error...and yes, i'm printing the mime-type line ("Content-type: text/html\n\n").

So, i'm wondering, aside from an actual script-not-working-at-all type thing or a bad content-type line, what could cause a 500 error?

keep in mind, it isnt bad file permissions or anything, because the script itself actually runs, just what I print to the browser never gets there. so what could be causing this error?

Edit: chipmunk 2001-06-05