|
|
| P is for Practical | |
| PerlMonks |
Re^2: multi version perlby space_monk (Chaplain) |
| on Jun 06, 2013 at 09:50 UTC ( [id://1037426]=note: print w/replies, xml ) | Need Help?? |
|
You should not redirect /usr/bin/perl for the reasons explained above, but you CAN reasonably redirect /usr/local/bin/perl to your new version of Perl and put that as the path to Perl in the magic perl start line.
You should also arrange the path search for non-admin users to pick up the local perl instead of the system Perl. e.g. in /etc/profile or similar You may need to add/change other environment variables as well (PERL5INC, PERL5LIBS..)
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||