Fix RT #107304: Newer versions of File::Path cause warning "_Inline for _Inline: No such file or directory at Module/ScanDeps.pm line 1339."
drop the dubious call to rmtree()
Fix RT106142: Preload dependencies for PDL and PDL::NiceSlice
adopted from a patch by Shawn Laffan, thanks Shawn!
Fix RT#106144: Preload dependencies for File::BOM)
adopted from a patch by Shawn Laffan, thanks Shawn!
Revise our stance on utf8.pm:
A line of "use utf8;" just means "this file is encoded in UTF-8" and should _not_ result in scanning utf8.pm which will pull in the whole Unicode shebang (propery tables and what not). Yes, utf8.pm _doesn contain "require utf8_heavy.pl", but only inside an AUTOLOAD() that is _not_ triggered by calling functions like utf8::is_utf8().
OTOH the innocently looking one-liner
perl -ne 'print if /\pN/'
implicitly loads utf8.pm and triggers the AUTOLAD().
So prevent utf8.pm from being scanned and make utf8_heavy.pl the indicator for "I need the Unicode stuff" instead.
Cache the results of _get_preload('utf8_heavy.pl').