in reply to Issue with @INC

Hi, just to reiterate what marto said, don't use the system perl on a Mac. Don't install modules for it, don't write scripts that use it ... it's not for you. It is for the system.

Instead, install perlbrew, use that to install a modern Perl version, pay attention to the trivial setup you need to do (add a line to your .bash_profile), `perlbrew switch` to the new perl, and you are able to install anything you like as the logged in user, switching among as many Perl versions as you'd like to play with.

Do it today!

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Issue with @INC
by marto (Cardinal) on Oct 14, 2019 at 20:21 UTC

    So, sort of related https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_release_notes, looks like perl doesn't fit in with the future of MacOS out of the box at least:

    "Scripting language runtimes such as Python, Ruby, and Perl are included in macOS for compatibility with legacy software. Future versions of macOS won’t include scripting language runtimes by default, and might require you to install additional packages. If your software depends on scripting languages, it’s recommended that you bundle the runtime within the app."