So, I was reading chromatic’s latest, wherein he links to a p5p post which mentions the whole bit about @INC
including multiple point releases in it, which makes having them around expensive. In case you didn’t know it, you can install perl point releases in the same directory and the default @INC
will include all the releases in descending order, meaning that you can use binary modules from prior point releases without recompiling them.
But why?
If you’re going to go to the trouble of compiling a new perl executable, how much more effort is it to recompile everything else in your install? If you’re using continuous integration, don’t merely use it on your code, use it on the CPAN modules you use as well.
The whole idea of mixing point releases seems like it’s a nightmare waiting to happen.
Actually, why are you upgrading an existing perl installation at all? What if there’s some code that can’t deal even with a point release upgrade? You shouldn’t force that upgrade on others in your organization. Put the point release into a different directory and lock it down. Don’t use site_perl
; install all of your modules into some private area and use PERL5LIB
. (Learn to use INSTALL_BASE
with ExtUtils::MakeMaker
and install_base
with Module::Build
.)