I'm trying to install some Perl modules in a non-standard place, let it /non/standard/location. I used
perl Makefile.PL PREFIX=/non/standard/location
make;make install
to install them.
In a script that uses a module, it seems necessary to specify a long path to the directory, including the version of Perl, for example:
use lib '/non/standard/location/lib/perl5/site_perl/5.8.9/';
use A::B;
Is there any one use libor other statement that I can use that is not so long and verbose, and which does not include the actual version of Perl, so that I do not have to go back and edit this program if the version of Perl is updated?
user181548
source
share