#/usr/bin/perl use strict; use warnings; for my $tree ("a","b") { local $ENV{PERL5LIB} = $tree; delete $INC{'Foo.pm'}; require Foo; Foo::Bar(); }
As demonstrated by GrandFather recently in Re: Adding code to a Perl program without stopping it.
In reply to Re: Changing Module Tree
by wind
in thread Changing Module Tree
by lackita
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |