Clinton Gormley wrote:
Try adding "warn $msg" statements (instead of printing to a file).
Perl's "warn" function prints to STDERR, which is usually appended to the web
server's errors log. To read the errors as they are printed, do the following (provided
you have shell access on your server, and it's running on some kind of Unix/Linux system):
tail -f /var/log/httpd/error_log
Apache's log entries are escaped, so it makes it difficult to read
multi-line output (eg) Data::Dumper output.
You can make them more readable with:
tail -f /var/log/httpd/error_log | perl -pe 's/\\n/\n/g'
**** WARNING NOT FOR PRODUCTION *****
**** WARNING NOT FOR PRODUCTION *****
**** WARNING NOT FOR PRODUCTION *****
**** WARNING NOT FOR PRODUCTION *****
**** WARNING NOT FOR PRODUCTION *****
compile httpd with
-DAP_UNSAFE_ERROR_LOG_UNESCAPED'
--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.