Suggestion: try plenv - it makes it simple to install and use other Perls apart from the system Perl (this is generally much safer than tinkering with the system Perl).

It is easy to install

Once you've done that, you can use it to install cpan minus
plenv install-cpanm
Then
% cpanm File::TreeBuilder --> Working on File::TreeBuilder Fetching http://www.cpan.org/authors/id/L/LU/LUCS/File-TreeBuilder-0.0 +2.tar.gz ... OK Configuring File-TreeBuilder-0.02 ... OK ==> Found dependencies: Test::Usage --> Working on Test::Usage Fetching http://www.cpan.org/authors/id/L/LU/LUCS/Test-Usage-0.08.tar. +gz ... OK Configuring Test-Usage-0.08 ... OK ==> Found dependencies: IO::Capture::Stderr, File::Slurp, IO::Capture: +:Stdout --> Working on IO::Capture::Stderr Fetching http://www.cpan.org/authors/id/R/RE/REYNOLDS/IO-Capture-0.05. +tar.gz ... OK Configuring IO-Capture-0.04 ... OK Building and testing IO-Capture-0.05 ... OK Successfully installed IO-Capture-0.05 --> Working on File::Slurp Fetching http://www.cpan.org/authors/id/C/CA/CAPOEIRAB/File-Slurp-9999 +.32.tar.gz ... OK Configuring File-Slurp-9999.32 ... OK Building and testing File-Slurp-9999.32 ... OK Successfully installed File-Slurp-9999.32 Building and testing Test-Usage-0.08 ... OK Successfully installed Test-Usage-0.08 Building and testing File-TreeBuilder-0.02 ... OK Successfully installed File-TreeBuilder-0.02 4 distributions installed

In reply to Re: My cpan is very broken by Arunbear
in thread My cpan is very broken by Intrepid

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.