Alright, I tried to modify the test script, but I've discovered that with this code the "b" tree is never loaded.
#!/usr/bin/perl use Foo; for my $tree ("a","b") { local $ENV{PERL5LIB} = $tree; delete $INC{'Foo.pm'}; require Foo; Foo::Bar(); } Foo::Bar();
A side note, PERL5LIB is set to "a" when the script is executed.
In reply to Re^4: Changing Module Tree
by lackita
in thread Changing Module Tree
by lackita
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |