Re: Printing to STDOUT/browser
- Christopher E. Welton wrote:
> Folks:It's possible that some code that you use changes $| w/o localizing it.
> I recently re-installed mod_perl on my development computer from source.
> I downgraded from Apache2/mp2 to Apache 1.3.29/mp 1.29 in order to match
> versions with my production server.
> Since the reinstall I have had a strange problem. Printing small strings
> like "foo" using "print" without a filehandle or "croak" have not
> yielded any output to either the browser or the error_log. Printing long
> strings works ok, like printing the results of a cgi::formbuilder
> script. This leads me to believe that this may be a buffering problem.
> However, I have never encountered this behavior with MP before and have
> not had problems with buffering in MP before. Can someone offer a
> Also, if anyone knows how to have apache/mp send errors to the browserCGI::Carp::fatals_to_browser
> directly rather than to the error_log, that would be much appreciated.
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@... http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html