|go ahead... be a heretic|
Maintaining several perl versions on the same boxby est (Acolyte)
|on Sep 17, 2008 at 05:28 UTC||Need Help??|
est has asked for the
wisdom of the Perl Monks concerning the following question:
I've been long looking for a (easy) way of maintaining several perl versions on the same box without having to modify any single old programs rely on the old perl.
This article Best Pratices for Keeping Your Perl Installation Sane describes the good ways to do it, but not how...
E.g. if I want to keep my old 5.8.8 and try 5.10 and my all old programs have the shebangs line sets to "/usr/bin/perl" - so if I install 5.10 in "/usr/local/perl/*" I presume it will also modify /usr/bin/perl into the new version?
If so, how to avoid it?
Also, what is the best way to quickly switch back and forth between those perl versions (inccluding the CPAN modules installed)? I might still need to code in 5.8.8 for the reason to sync with our production server, etc.