|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
PERL5LIB different than 'use lib'by saintmike (Vicar) |
| on May 07, 2009 at 01:52 UTC ( [id://762455]=perlquestion: print w/replies, xml ) | Need Help?? |
|
saintmike has asked for the wisdom of the Perl Monks concerning the following question:
If I want to install a CPAN module in a location that doesn't interfere with my package manager, I typically use
and then use
to run scripts using that new hierarchy of perl libs. However, instead of using an ENV variable, I'd like to use code like which, unfortunately, and contrary to the explanation in perlrun, isn't the same. For example, if you have architecture-dependent code that ends up in something like /home/me/perl-lib/lib/perl5/i686-linux-thread-multi, then PERL5LIB set to /home/me/perl-lib/lib/perl5 will find it, while 'use lib' won't. Questions:
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||