develooper Front page | perl.perl5.porters | Postings from September 2012

Install to 'site' instead of 'perl' when perl version is 5.11+

Thread Next
Paul Marquess
September 30, 2012 14:30
Install to 'site' instead of 'perl' when perl version is 5.11+
Message ID:
I have a series of changes on RT (e.g #79812) logged against my dual-life modules that reference this page

To quote what it says

    In most cases, libraries will be using ExtUtils::MakeMaker. They should end up with a line 
    something like this:

        INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'),

    They're broken if they currently just say INSTALLDIRS => 'perl'

I currently use this in my modules 

     INSTALLDIRS => ($] > 5.009 ? 'perl' : 'site'),

Can't remember offhand what changed in 5.10 to warrant that, but I'm sure it was needed.

So should the change to Makefile.PL actually be this?

     INSTALLDIRS => ($] > 5.009  && $] < 5.011 ? 'perl' : 'site'),


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About