in reply to Re^2: How to tell EU::MM to install a pure-perl module into an architecture-specific location
in thread How to tell EU::MM to install a pure-perl module into an architecture-specific location

This looks to have some effect at least. It may be what you are after.

#!/usr/bin/perl use strict; use warnings; use ExtUtils::MakeMaker; use Config; my %MF = ( macro => { INSTALLSITELIB => $Config{installsitearch} } ); WriteMakefile (%MF); exit;

🦛

  • Comment on Re^3: How to tell EU::MM to install a pure-perl module into an architecture-specific location
  • Download Code

Replies are listed 'Best First'.
Re^4: How to tell EU::MM to install a pure-perl module into an architecture-specific location
by syphilis (Archbishop) on Sep 24, 2022 at 03:18 UTC
    macro => { INSTALLSITELIB => $Config{installsitearch} }

    Thanks hippo - that WriteMakefile() argument does exactly what I want.
    And "macro" is a valid argument going all the way back to EU-MM-6.17 (and probably beyond) - so it should certainly suffice for a module that (intentionally) doesn't work on perls older than 5.22.0.

    Cheers,
    Rob