From 93d481b1af3f92ba09b6ee867ec6417c7578921b Mon Sep 17 00:00:00 2001 From: James E Keenan Date: Thu, 14 Aug 2025 12:48:32 -0400 Subject: [PATCH] Correct assignment to INSTALLDIRS in Makefile.PL When installing modules from CPAN to perls from 5.12 forward, modules should be installed to 'site_perl' rather than 'perl'. Cf. https://github.com/Perl/perl5/issues/12722. This patch updates the INSTALLDIRS key-value pair per recommendation in https://github.com/Perl/perl5/issues/12722#issuecomment-544040160. --- Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 8557d67..3a7e681 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -7,7 +7,7 @@ WriteMakefile1( VERSION_FROM => "lib/Text/ParseWords.pm", ABSTRACT_FROM => 'lib/Text/ParseWords.pm', AUTHOR => 'Alexandr Ciornii ', - INSTALLDIRS => 'perl', + INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'), 'LICENSE' => 'perl', 'MIN_PERL_VERSION' => 5.006, PREREQ_PM => {