I know this question has been asked before, but I can't seem to get consistent answers. I'm hoping your experience can guide me in the right direction. I attempted to install CPAN and I believe I have two installs, one in the ~/.cpan directory and the other in /var/root/.cpan directory. Is this normal or should I get rid of one ? If not proper, which one should I remove ?

I think I did one with sudo su and one without.

What question?

CPAN comes installed with perl, so you shouldn't need to install it, but you might need to configure it, so

So which configuration did you create and which one already existed?

How did you configure the one you created?

Leave everything alone :)

Spend some time reading the following and come back and ask questions

https://metacpan.org/pod/CPAN#CONFIGURATION and sh Configure -Dprefix=/home/username/perl -des and PERL5LIB/A Guide To Installing Modules/perlmodinstall/Re: Unable to install perl module Sendmail...

Also heed the advice of the others, leave the system/vendor perl alone , install your own, you don't need perlbrew to install your own its just a helper


In reply to Re: Proper CPAN Installation by Anonymous Monk
in thread Proper CPAN Installation by Cmdr Colstel

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.