Perl

Installing Your Own Perl Modules

You can install personal Perl modules in your homedir (using Lingua::EN::Words2Nums as an example):

mkdir -p ~/Perl/src
cd ~/Perl/src
wget 'http://search.cpan.org/CPAN/authors/id/J/JO/JOEY/Lingua-EN-Words2Nums-0.18.tar.gz'
tar xfz Lingua-EN-Words2Nums-0.18.tar.gz
cd Lingua-EN-Words2Nums-0.18
perl Makefile.PL PREFIX=~/Perl/usr/local
make
make test
make install

Now to use, add a line to your ~/.bashrc file:

export PERL5LIB=~/Perl/usr/local/lib/perl5:~/Perl/usr/local/lib/perl5/site_perl

logout and back in or:

. ~/.bashrc

And you should be all set.