in reply to Re: Overriding the registry's PERL5LIB in mod_perl on Win32
in thread Overriding the registry's PERL5LIB in mod_perl on Win32
What it needs is something to set PERL5LIB in the environment (thus cloaking any nasty registry setting) before the LoadFile directive that loads perl510.dll, but there are no Apache or mod_perl directives to do that.
The nearest that we have is SetEnv and PerlSetEnv, but they just set the environment seen by CGI scripts and mod_perl handlers much later on.
The other idea is simply to rebuild my perl without that horrible registry lookup misfeature in it. It only requires a couple of lines to be deleted from win32/win32.c's win32_getenv(). In fact, in the email thread cited in my original post, Jan Dubois has already suggested actually removing it from perl altogether, so I might just take him up on pursuing that on p5p. (I'll still need to patch my own perl in the meantime, however: I can't wait until 5.12 for a fix.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Overriding the registry's PERL5LIB in mod_perl on Win32
by perrin (Chancellor) on May 21, 2009 at 17:18 UTC | |
by shay (Beadle) on May 22, 2009 at 08:02 UTC |