saintmike has asked for the wisdom of the Perl Monks concerning the following question:
and then useperl Makefile.PL INSTALLBASE=/home/me/perl-lib
to run scripts using that new hierarchy of perl libs.PERL5LIB=/home/me/perl-lib/lib/perl5 perl-script
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.use lib '/home/me/perl-lib/lib/perl5';
Questions:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PERL5LIB different than 'use lib'
by toolic (Bishop) on May 07, 2009 at 02:34 UTC | |
by almut (Canon) on May 07, 2009 at 03:01 UTC | |
by tilly (Archbishop) on May 07, 2009 at 23:30 UTC | |
by almut (Canon) on May 08, 2009 at 09:53 UTC | |
by tilly (Archbishop) on May 08, 2009 at 13:58 UTC | |
| |
|
Re: PERL5LIB different than 'use lib'
by almut (Canon) on May 07, 2009 at 02:22 UTC | |
|
Re: PERL5LIB different than 'use lib'
by Anonymous Monk on May 07, 2009 at 03:23 UTC | |
by tilly (Archbishop) on May 07, 2009 at 23:34 UTC |