title: What is the default path for cpanm to install Perl modules?
body: <p>Before I use <code>cpanm</code> to install some Perl modules on a "new" (to me) system, I would like to know where they will get installed by default.</p>
  
  <p>I don't see any kind of a dry-run option, which is what I'd hoped for.</p>
  
  <p><code>perl -V</code> includes this %ENV and @INC info:</p>
  
  <pre><code>%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
  </code></pre>
  
  <p>Does that define the behavior, or are there other considerations?  Specifically, the documentation for cpanm includes:</p>
  
  <blockquote>
  <pre><code>-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.
  </code></pre>
  </blockquote>
  
  <p>But it does not indicate which environment variables are significant.</p>