in reply to Re^4: Changing Module Tree
in thread Changing Module Tree

PERLLIB/PERL5LIB does not affect a running perl process

$ perl -le "print for @INC
C:/perl/site/5.12.2/lib/MSWin32-x86-multi-thread
C:/perl/site/5.12.2/lib
C:/perl/5.12.2/lib/MSWin32-x86-multi-thread
C:/perl/5.12.2/lib
.
 
$ set PERL5LIB=blah
 
$ perl -le "print for @INC
blah
C:/perl/site/5.12.2/lib/MSWin32-x86-multi-thread
C:/perl/site/5.12.2/lib
C:/perl/5.12.2/lib/MSWin32-x86-multi-thread
C:/perl/5.12.2/lib
.

You want to manipulate @INC directly