Editing Upgrading Perl on MacOS Mojave
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
To update to a newer version of Perl, install Homebrew. Then run the command: | 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: | 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 | 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 | instead of to | ||
− | + | /usr/local/Cellar/perl/5.36.0/lib/perl5/site_perl/5.36/ | |
− | |||
− | |||
− | |||
− |