hmerrill has asked for the wisdom of the Perl Monks concerning the following question:
to go to the Apache error_log.print STDERR "Some text\n";
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.perl 5.8.0 Apache/2.0.40
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl CGI Apache 2.0 print STDERR not appearing in error_log
by janx (Monk) on Sep 19, 2002 at 13:59 UTC |