[rt.cpan.org #106144] [Patch] Preload dependencies for File::BOM

[email protected] ("Roderich Schupp via RT")
Newsgroups perl.par
Message-ID <[email protected]>
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: [email protected]
      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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.