G'day usemodperl,

Unfortunately, I see a problem with what you have here. Consider this scenario.

Let's say you're running macOS 10.x which provides Perl 5.x; you follow the steps you show and install a variety of CPAN modules; these are now all available for Perl 5.x code to load. At some later point, you upgrade to macOS 10.y which uses Perl 5.y; Perl 5.x is completely removed along with all modules installed using that version of Perl.

I've been using macOS (formerly Mac OS X) for about eight or nine years; the scenario I've just described seems to have been standard Apple practice for all of that time. I'm away from home (where my Mac is) at the moment so I can't test any this: please correct me if you think some (or even all) of this is wrong.

I continue to recommend leaving the System Perl (/usr/bin/perl) alone on Mac systems and instead use perlbrew and install modules using your preferred cpan utility.

— Ken


In reply to Re: Install Perl module from CPAN (Apple Mac Service) by kcott
in thread Install Perl module from CPAN (Apple Mac Service) by usemodperl

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.