Is there a way to avoid putting the Perl version number into the "use lib" line for Perl modules in
Posted
by Kinopiko
on Stack Overflow
See other posts from Stack Overflow
or by Kinopiko
Published on 2010-06-18T03:20:43Z
Indexed on
2010/06/18
3:23 UTC
Read the original article
Hit count: 864
perl
|perl-module
I am trying to install some Perl modules into a non-standard location, let's call it /non/standard/location
. In the script which uses the module, it seems to be necessary to specify a long directory path including the version of Perl, like so:
#!/usr/local/bin/perl
use lib '/non/standard/location/lib/perl5/site_perl/5.8.9/';
use A::B;
Is there any use lib
or other statement which I can use which is not so long and verbose, and which does not include the actual version of Perl, in order that I don't have to go back and edit this out of the program if the version of Perl is upgraded?
© Stack Overflow or respective owner