Wed Jul 29 11:10:31 2015: Request 106144 was acted upon. Transaction: Correspondence added by RSCHUPP Queue: Module-ScanDeps Subject: [Patch] Preload dependencies for File::BOM Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: slaf...@cpan.org Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106144 >
> The patch was tested using the code below. The file open is needed to > trigger the loading of the extra modules under "pp -x". > > use File::BOM; > open my $fh, '<:via(File::BOM)', $0 # just read ourselves > or die "Cannot open own code via File::BOM\n"; > $fh->close; 'File/BOM.pm' => [qw( Encode/Unicode.pm PerlIO/via.pm )], is enough to make the code above work. No need to load a bunch of unrelated encodings. Cheers, Roderich