Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Registry and CGI::Carp

brett lee

2012-01-27

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi Folks,

Running several scripts under ModPerl::Registry that use CGI::Carp.  Am seeing problems with the logging.  The message that is logged is correct, however the name of the script that generated the event is not.

Each script contains a line similar to:

use CGI::Carp qw(name=my_script_X);

When the scripts are precompiled in startup.pl, the *same* script name is logged for each and every script.  When scripts are not precompiled the name is frequently correct, but it is not correct all of the time.

A post earlier to Perl Monks came back with the suggestion to extend CGI::Carp.pm to support running under Registry.  As what I am trying to do seems like it would be a pretty common scenario, am thinking there may be another option.

Thanks for considering this one.
Brett
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.