Before I use cpanm
to install some Perl modules on a "new" (to me) system, I would like to know where they will get installed by default.
I don't see any kind of a dry-run option, which is what I'd hoped for.
perl -V
includes this %ENV and @INC info:
%ENV:
PERL5LIB="/home/randall/perl5/lib/perl5"
PERL_HOMEDIR="1"
PERL_LOCAL_LIB_ROOT="/home/randall/perl5"
PERL_MB_OPT="--install_base /home/randall/perl5"
PERL_MM_OPT="INSTALL_BASE=/home/randall/perl5"
@INC:
/home/randall/perl5/lib/perl5
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5
/usr/share/perl5
Does that define the behavior, or are there other considerations? Specifically, the documentation for cpanm includes:
-l, --local-lib Sets the local::lib compatible path to install modules to. You don't need to set this if you already configure the shell environment variables using local::lib, but this can be used to override that as well.
But it does not indicate which environment variables are significant.