http://www.perlmonks.org?node_id=445472


in reply to Installing Perl modules locally

If you find you will need to install many modules, setting up your own $HOME/.cpan/CPAN/MyConfig.pm might be worthwhile.

You will need to touch entries like the following:

'build_dir' => q[/home/me/.cpan/build], 'cpan_home' => q[/home/me/.cpan], 'keep_source_where' => q[/home/me/.cpan/sources], 'makepl_arg' => q[LIB=/home/me/myperl/lib INSTALLMAN1DIR=/home/me/my +perl/man/man1 INSTALLMAN3DIR=/home/me/myperl/man/man3],

Once you have done this, you will be able to install modules easily using:

perl -MCPAN -e shell install Net::NetSend