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

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

This seems like a strange one to me - I've been writing Perl CGI scripts with Apache 1.3 for the last 2+ years, and I've always known
print STDERR "Some text\n";
to go to the Apache error_log.

However, I recently(2 days ago) upgrade my machine to
perl 5.8.0 Apache/2.0.40
and now I have this situation - I have a Perl CGI script that does 'print STDERR "TOP of script A\n";' at the top - this script POST's back into itself by *not* including an ACTION. The 1st time into the script, the print appears in the Apache error_log, but after the POST I *don't* see the message appear in the error_log the 2nd time. But I know it is coming back into the same script because if I remove the STDERR from that print(so that the print is then printing to STDOUT), I get the typical "bad header" message.

Anyone know what's going on here?

Any and all help is appreciated.

Thanks.