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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.