Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: @INC not set for perlbrewby kcott (Archbishop) |
on Jul 29, 2016 at 15:41 UTC ( [id://1168822]=note: print w/replies, xml ) | Need Help?? |
G'day Alessandro, I have Mac OS X v10.10.3 (Yosemite) and perlbrew v0.73. If you're not already familiar with certain issues with El Capitan, take a look at "CPAN on El Capitan", "OSX Server Perl install modules" and "apple.stackexchange.com: 'What is the “rootless” feature in El Capitan, really?'". which finds the first occurrence in $PATH. Your $PATH should look like this:
Here's my system perl, current perl and $PATH:
When you use perlbrew switch, perlbrew should update $PATH; which will now find a different version of perl; the system perl is unaffected.
If you're not seeing this type of behaviour, study the App-perlbrew README (especially the INSTALLATION section), then consider one of the upgrade or install related functions in perlbrew. "... but it seems somehow, the "switch" was only partial." 'perlbrew switch' affects the shell in which it is run, and all shells subsequently created, until another 'perlbrew switch' is executed. It doesn't affect other shells which exist when it is used. If that doesn't help, please provide more details. You should find the guidelines in "How do I post a question effectively?" to be helpful in this regard. — Ken
In Section
Seekers of Perl Wisdom
|
|