I'm tryng to instruct my system to permanently use perlbrew version of perl in my shells as per perlbrew documentation with:
perlbrew switch perl-5.26.0
which should use ~/perl5/perlbrew/perls/perl-5.26.0/bin/perl in every new open shell. But when I close and reopen iTerm2 and ask
perl -v
the answer is
This is perl 5, version 24, subversion 1 (v5.24.1) built for darwin-thread-multi-2level
which is system perl, in the path /usr/local/Cellar/perl/5.24.1/bin/perl
No chances to swith to different perl release other than current shell.
I have in my .bash_profile: source ~/perl5/perlbrew/etc/bashrc
as per perlbrew instructions
What am I missing to have permanently perl switched to desired version?
Thank you
bash -l
and try again. (That's a lowercase "L") – ikegami