Is there a way to restore default perl5 and cpan modules in Mojave without rebuilding the OS?
macOS Mojave – How to Restore Default Perl
mojaveperl
Related Question
- MacOS – How to install CPAN modules from the command line on OS X
- How to install modules from CPAN without sudo
- Problem installing Devel::REPL using cpanm
- MacOS – El Capitan SIP and CPAN
- Mac – Trying to downgrade to High Sierra but Time Machine restore upgrades back to Mojave
- Safari from macOS Catalina Not Working on macOS Mojave – Fixes
- Mojave Calendar – Default Start Time of New Events
- macOS Mojave – Running Perl Shell Script from AppleScript
Best Answer
Standard binaries are protected by SIP and can‘t easily be removed nor replaced. Booting into recovery and reinstalling macOS only is the easiest way to solve this. You may need to manually reinstall any user-installed CPAN modules again afterwards.