in reply to Install Perl module from CPAN (Apple Mac Service)

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

Replies are listed 'Best First'.
Re^2: Install Perl module from CPAN (Apple Mac Service)
by usemodperl (Beadle) on Jul 09, 2018 at 18:32 UTC
    Unfortunately, I see a problem with what you have here.

    Thanks for your concern but there is no problem. This service will not install modules in system perl (unless modified to use sudo, etc). This service simply copies the name of a selected module and pastes it to your preferred CPAN client. If you're using perlbrew, as is recommended, the module installs in whatever perl is in use at the time (just like shell).

    STOP REINVENTING WHEELS ⚛ START BUILDING SPACE ROCKETS!CPAN 🐪

      Thanks for the feedback. It was unclear from the OP that it worked like this and, as I said, I'm not currently in a position to try it out.

      — Ken