in reply to Re: multi version perl
in thread multi version perl
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
export PATH=/usr/local/bin;$PATH
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! :-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: multi version perl
by salva (Canon) on Jun 06, 2013 at 11:48 UTC | |
by Utilitarian (Vicar) on Jun 06, 2013 at 13:15 UTC | |
by space_monk (Chaplain) on Jun 06, 2013 at 14:36 UTC |
In Section
Seekers of Perl Wisdom