$dir =~ m{/t(?:/|$)};
# ignore the cpan script in lib/CPAN/bin, the instmodsh and xsubpp
# scripts in lib/ExtUtils, and the prove script in lib/Test/Harness
+ # as well as the corelist script from lib/Module/CoreList/bin
# (they're installed later with other utils)
- return if $name =~ /^(?:cpan|instmodsh|prove)\z/;
+ return if $name =~ /^(?:cpan|instmodsh|prove|corelist)\z/;
# ignore the Makefiles
return if $name =~ /^makefile$/i;
# ignore the test extensions
my $installlib = $installprivlib;
if ($dir =~ /^auto/ ||
($name =~ /^(.*)\.(?:pm|pod)$/ && $archpms{$1}) ||
- ($name =~ /^(.*)\.(?:h|lib)$/i && ($Is_W32 || $Is_NetWare))
+ ($name =~ /^(.*)\.(?:h|lib)$/i && ($Is_W32 || $Is_NetWare)) ||
+ $name eq 'Config_heavy.pl'
) {
$installlib = $installarchlib;
return unless $do_installarchlib;