in reply to Re^3: Changing Module Tree
in thread Changing Module Tree
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Changing Module Tree
by Anonymous Monk on Apr 06, 2011 at 14:44 UTC | |
|
Re^5: Changing Module Tree
by wind (Priest) on Apr 06, 2011 at 22:50 UTC |