in reply to Changing Module Tree
#/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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Changing Module Tree
by lackita (Sexton) on Apr 05, 2011 at 21:09 UTC | |
by wind (Priest) on Apr 05, 2011 at 21:25 UTC | |
by lackita (Sexton) on Apr 06, 2011 at 14:21 UTC | |
by Anonymous Monk on Apr 06, 2011 at 14:44 UTC | |
by wind (Priest) on Apr 06, 2011 at 22:50 UTC |