On Mon, Mar 15, 2010 at 12:33:07PM +0100, Louis-David Mitterrand wrote: > Hi, > > After upgrading apache2 I now get raw perl warnings in some of my Mason > pages: > > [Mon Mar 15 12:24:06 2010] Use of uninitialized value $source in length > at /usr/share/perl5/String/Escape.pm line 380. > > <!DOCTYPE html > PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > > [... rest of HTML document ...] > > I tried removing "use warnings" from my handler.pl to no avail.
Found the problem. I had this in my handler.pl: $SIG{__WARN__} = sub {print "[".scalar(localtime)."] ".$_[0];}; sub handler { .... } After changing it to "print STDERR", warnings now go to the log. I wonder though abount the apache-2.2.15 change that brought about this behaviour... ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users