ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-mod_perl
perl-mod_perl
Re: Unable to get PerlAuthenHandler to work in mp2
by Clinton Gormley other posts by this author
Aug 20 2008 11:49PM messages near this date
Re: Unable to get PerlAuthenHandler to work in mp2 | Re: Unable to get PerlAuthenHandler to work in mp2
>  
>  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 err
ors 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'

clint
Thread:
Brett Randall
Perrin Harkins
John Drago
Clinton Gormley
Philip M. Gollucci
Perrin Harkins

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved