bbfan has asked for the wisdom of the Perl Monks concerning the following question:
Yet again I seek the wisdom of the sages. Per the subject line, have been successfully using:
CGI::Carp qw(script_1.cgi); CGI::Carp qw(script_2.cgi); CGI::Carp qw(script_3.cgi);
in script1, script2 and script3 to log information. All was working well until the introduction of home-brewed precompilation of the scripts, which seemed to work well until I noticed that all the logging referred to just one of the scripts (for example, "script_2.cgi").
In a nutshell, the precompilation is great, but accurate logging is even better. Anyone have an idea how to resolve this problem so I can have both? Would prefer to stick with the home brewed, or a fixed version of it.
The home brewed precompile (added to startup.pl) is:
As always, many thanks for your consideration.{ use File::Find; use ModPerl::RegistryLoader (); my $rl = ModPerl::RegistryLoader->new ( package => 'ModPerl::Registry', debug => '8', NameWithVirtualHost => '0', ); my $directory = "/var/www/html/example.com/cgi-bin"; my $uri = "http://www.example.com/cgi-bin/"; opendir THISDIR, $directory or die $!; foreach ( @files = grep !/^\./, readdir THISDIR ) { $rl->handler( "/cgi-bin/$_" , "/var/www/html/example.com/cgi-bin/$_", "www.example.com" ); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Carp in Apache::Registry
by Anonymous Monk on Jan 24, 2012 at 22:35 UTC | |
by bbfan (Novice) on Jan 24, 2012 at 23:20 UTC | |
by Anonymous Monk on Jan 24, 2012 at 23:27 UTC | |
by bbfan (Novice) on Jan 25, 2012 at 00:17 UTC | |
by Anonymous Monk on Jan 25, 2012 at 03:42 UTC | |
by bbfan (Novice) on Jan 25, 2012 at 13:37 UTC | |
by Anonymous Monk on Jan 26, 2012 at 08:36 UTC |