Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Install Perl module from CPAN (Apple Mac Service)

by kcott (Archbishop)
on Jul 09, 2018 at 10:11 UTC ( [id://1218152]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1218152]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found