On Tue, 27 Apr 2010, Todd Rinaldo wrote: > When discussing module deprecations earlier this year, it came up that > dual life modules installed from CPAN should not set INSTALLDIRS to > perl. Instead, the CPAN instance of the module should install to the > site_lib tree. Is this correct? > > I notice version.pm from CPAN is installing to site_lib under 5.12 > perl. It's the only dual life module that does. Is this a mistake or > are there reasons it needs to do this? Starting with 5.12 site_lib comes before privlib in @INC, so I would think *all* modules on CPAN should install into site_lib for 5.12 and later and not overwrite the version in privlib. The new version will always take precedence in @INC, and it is easy to revert to the bundled version by removing the new code in site_lib. This didn't work in earlier Perl versions because site_lib used to be shadowed by privlib, and dual-life modules had to go to extra efforts to be updateable. Cheers, -JanThread Previous | Thread Next