Hey, monks. I've got two module trees which are nearly identical, and I have to run the same command once with each of these trees. The best method I can come up with is to combine a local $ENV{PERL5LIB} with system:
#/usr/bin/perl for my $tree ("a","b") { local $ENV{PERL5LIB} = $tree; system("perl -e 'use Foo;Foo::Bar()'"); }
Is there a way to accomplish this without having to start a subprocess?
In reply to Changing Module Tree by lackita
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |