home | tech | misc | code | bookmarks (broken) | contact | README

Perl notes

Installing and using a perl module in a non-standard location

Just pass a DESTDIR option when executing the Makefile.PL file, like said here:

perl Makefile.PL DESTDIR=<location>

To use it, just use the use lib command before loading the modules:

use lib "<location>";

If you don't want to modify the Perl script, setting an environment variable that indicates the Perl library location is enough, like told here:

export PERL5LIB=<location>

Other userful reference here.