I have never worked with non-system perl such as what perlbrew makes possible

There's no difference between a distro-installed Perl and a perlbrew-installed Perl except in which directory they are installed.

In fact, you can manage the system Perl with perlbrew simply by creating a symlink.

cd "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}" mkdir perls/system ln -s /usr/bin perls/system/bin

It's not obvious to me that there is a cpan for each perlbrew install.

Each perlbrew has its own modules and binaries.

I cannot figure out how and where cpan will install the modules in an environment when there are multiple perls installed.

cpan asks the perl executing it for that information.

$ "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}"/perls/5.20.0t/bin/perl -V:' +inst.*' installarchlib='/home/ikegami/usr/perlbrew/perls/5.20.0t/lib/5.20.0/x8 +6_64-linux-thread-multi'; installbin='/home/ikegami/usr/perlbrew/perls/5.20.0t/bin'; installhtml1dir=''; installhtml3dir=''; installman1dir='/home/ikegami/usr/perlbrew/perls/5.20.0t/man/man1'; installman3dir='/home/ikegami/usr/perlbrew/perls/5.20.0t/man/man3'; installprefix='/home/ikegami/usr/perlbrew/perls/5.20.0t'; installprefixexp='/home/ikegami/usr/perlbrew/perls/5.20.0t'; installprivlib='/home/ikegami/usr/perlbrew/perls/5.20.0t/lib/5.20.0'; installscript='/home/ikegami/usr/perlbrew/perls/5.20.0t/bin'; installsitearch='/home/ikegami/usr/perlbrew/perls/5.20.0t/lib/site_per +l/5.20.0/x86_64-linux-thread-multi'; installsitebin='/home/ikegami/usr/perlbrew/perls/5.20.0t/bin'; installsitehtml1dir=''; installsitehtml3dir=''; installsitelib='/home/ikegami/usr/perlbrew/perls/5.20.0t/lib/site_perl +/5.20.0'; installsiteman1dir='/home/ikegami/usr/perlbrew/perls/5.20.0t/man/man1' +; installsiteman3dir='/home/ikegami/usr/perlbrew/perls/5.20.0t/man/man3' +; installsitescript='/home/ikegami/usr/perlbrew/perls/5.20.0t/bin'; installstyle='lib'; installusrbinperl='undef'; installvendorarch=''; installvendorbin=''; installvendorhtml1dir=''; installvendorhtml3dir=''; installvendorlib=''; installvendorman1dir=''; installvendorman3dir=''; installvendorscript=''; $ "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}"/perls/5.18.2t/bin/perl -V:' +inst.*' installarchlib='/home/ikegami/usr/perlbrew/perls/5.18.2t/lib/5.18.2/x8 +6_64-linux-thread-multi'; installbin='/home/ikegami/usr/perlbrew/perls/5.18.2t/bin'; installhtml1dir=''; installhtml3dir=''; installman1dir='/home/ikegami/usr/perlbrew/perls/5.18.2t/man/man1'; installman3dir='/home/ikegami/usr/perlbrew/perls/5.18.2t/man/man3'; installprefix='/home/ikegami/usr/perlbrew/perls/5.18.2t'; installprefixexp='/home/ikegami/usr/perlbrew/perls/5.18.2t'; installprivlib='/home/ikegami/usr/perlbrew/perls/5.18.2t/lib/5.18.2'; installscript='/home/ikegami/usr/perlbrew/perls/5.18.2t/bin'; installsitearch='/home/ikegami/usr/perlbrew/perls/5.18.2t/lib/site_per +l/5.18.2/x86_64-linux-thread-multi'; installsitebin='/home/ikegami/usr/perlbrew/perls/5.18.2t/bin'; installsitehtml1dir=''; installsitehtml3dir=''; installsitelib='/home/ikegami/usr/perlbrew/perls/5.18.2t/lib/site_perl +/5.18.2'; installsiteman1dir='/home/ikegami/usr/perlbrew/perls/5.18.2t/man/man1' +; installsiteman3dir='/home/ikegami/usr/perlbrew/perls/5.18.2t/man/man3' +; installsitescript='/home/ikegami/usr/perlbrew/perls/5.18.2t/bin'; installstyle='lib'; installusrbinperl='undef'; installvendorarch=''; installvendorbin=''; installvendorhtml1dir=''; installvendorhtml3dir=''; installvendorlib=''; installvendorman1dir=''; installvendorman3dir=''; installvendorscript='';

In reply to Re^3: perlbrew and cpan by ikegami
in thread perlbrew and cpan by lcarter

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.