How to install a module using custom location
mkdir -p ~/perl5lib
perl Makefile.PL PREFIX=~/perl5lib
make
make install
export PERL5LIB=$PERL5LIB:~/perl5lib
1. mkdir -p ~/lib/perl
2. perl Makefile.PL LIB=~/lib/perl
3. make install
To use modules that are installed in your home directory, specify the -I switch:
perl -I/home/khai/lib/perl -T 00-load.t
The -I switch tells Perl to look for modules in alternate installation directory. The directory path must immediately follow the -I switch with no space in-between.
page_revision: 3, last_edited: 1227300111|%e %b %Y, %H:%M %Z (%O ago)





