in reply to How do I tell CPAN to use a local lib?

perl -Iblahblah -S cpan

see PERLLIB/PERL5LIB/PERL5OPTS in perlrun, see Re: cpanm --sudo installs to /root/perl5 instead of /usr

BUT consider fatpack, http://www.cavapackager.com/, http://www.citrusperl.com/helpweb/createdistribution.htm, ...Installing modules without root and shell / http://cgipan.sf.net/

  • Comment on Re: How do I tell CPAN to use a local lib? ()

Replies are listed 'Best First'.
Re^2: How do I tell CPAN to use a local lib? (perllib/perl5lib/perl5opt/-Idirectory/-Mblib/sitecustomize.pl )
by Anonymous Monk on May 26, 2013 at 02:59 UTC
    PERL5LIB trumps PERLLIB
    -Idirectory trumps PERL5LIB
    -Mblib trumps PERL5LIB/PERLLIB/-I
    PERL5OPT=-Mlib=shecky trumps -Mblib/PERL5LIB/PERLLIB/-I
    and they all trump sitecustomize.pl (sitecustomize processed before they are)

    PERL5LIB TRUMPS PERLLIB, -I trumps PERL5LIB, -Mblib TRUMPS PERL5LIB/PERLLIB/-I, PERL5OPT=-Mlib=shecky trumps -Mblib/PERL5LIB/PERLLIB/-I and they all trump sitecustomize.pl