paulthewalrus has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm trying to debug some Perl code in a mod_perl environment. I'll try to get to the root of my issue:
When I start apache I can see the values of $ENV{MOD_PERL} and $ENV{MOD_PERL_API_VERSION}. I see this by doing something (e.g. go to a URL) and print to my error log the values of MOD_PERL and and MOD_PERL_API_VERSION. When I go back to the URL and get the same Apache PID those two ENV variables are gone (I still see everything else in %ENV). I am searching through my sea of code and CPAN modules and I am having trouble determining what is removing the environment variables. Has anyone experienced something like this before?
Regarding why this matters, certain CPAN modules such as XMLRPC::Transport::HTTP look for the MOD_PERL_API_VERSION.
If you could point me in the right direction it would be much appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MOD_PERL ENV variable unsetting?
by NetWallah (Canon) on Sep 18, 2013 at 03:20 UTC | |
by paulthewalrus (Initiate) on Sep 18, 2013 at 15:23 UTC | |
by paulthewalrus (Initiate) on Sep 18, 2013 at 16:31 UTC | |
|
Re: MOD_PERL ENV variable unsetting?
by Anonymous Monk on Sep 18, 2013 at 03:17 UTC | |
by paulthewalrus (Initiate) on Sep 18, 2013 at 15:03 UTC |