Upgrading Perl on MacOS Mojave

From Chuckipedia
Revision as of 21:53, 26 October 2022 by Admin (talk | contribs) (Created page with "MacOS Mojave, which is from 2018, comes with a version of Perl (5.18) from 2013. To update to a newer version of Perl, install Homebrew. Then run the command: brew install...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

MacOS Mojave, which is from 2018, comes with a version of Perl (5.18) from 2013.

To update to a newer version of Perl, install Homebrew. Then run the command:

brew install perl

And when that's done run the command:

brew install cpanm

In that order. If you install cpanm first, it will latch onto Perl 5.18 and install modules to

/Library/Perl/5.18

instead of to

/usr/local/Cellar/perl/5.36.0/lib/perl5/site_perl/5.36/