You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Dami Laurent (PJ)" <la...@justice.ge.ch> on 2006/04/13 12:35:37 UTC

unable to prepend directories in front of @INC (MP2, Windows, Kobes distribution)

Hi everybody,

I'm unable to prepend directories in front of @INC while starting
Apache/ModPerl (using Randy Kobes distribution for Windows, Embedded
Perl version v5.8.7 for Apache/2.0.54, ModPerl 2)

I tried the following :
   
   use lib "/my/private/lib" in startup.pl

   unshift @INC, "/my/private/lib" in startup.pl

   PerlSetEnv PERL5LIB "/my/private/lib" in perl.conf

In all cases, "/my/private/lib" ends up in second position in @INC,
after "C:/perl/site/lib". I need it to go BEFORE.

Anybody has a hint ? Thanks in advance, L. Dami