[rt.cpan.org #106142] [Patch] Preload dependencies for PDL and PDL::NiceSlice

[email protected] ("Shawn Laffan via RT")
Newsgroups perl.par
Message-ID <[email protected]>
Wed Jul 29 07:50:35 2015: Request 106142 was acted upon.
Transaction: Ticket created by SLAFFAN
       Queue: Module-ScanDeps
     Subject: [Patch] Preload dependencies for PDL and PDL::NiceSlice
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106142 >


Attached is a patch to add preloads for PDL and PDL::NiceSlice.  

Without the preloads the code below fails after being packed using pp (unless the -x option is specified).

Regards,
Shawn.


use PDL;
use PDL::NiceSlice;
my $x = pdl [[2,3,4],[1,2,3]]; 
print $x(1,);
print $x;
ScanDeps.pm.patch (text/x-diff, 759 B)
Index: lib/Module/ScanDeps.pm
===================================================================
--- lib/Module/ScanDeps.pm	(revision 1595)
+++ lib/Module/ScanDeps.pm	(working copy)
@@ -430,6 +430,12 @@
         _glob_in_inc('PDF/API2/Basic/TTF', 1);
     },
     'PDF/Writer.pm'                 => 'sub',
+    'PDL.pm' => sub { @{ _get_preload('utf8.pm') } },
+    'PDL/NiceSlice.pm'              => [
+        'PDL/NiceSlice/FilterUtilCall.pm',
+        'PDL/NiceSlice/FilterSimple.pm',
+        'PDL/NiceSlice/ModuleCompile.pm',
+    ],
     'Perl/Critic.pm'                => 'sub', #not only Perl/Critic/Policy
     'PerlIO.pm'                     => [ 'PerlIO/scalar.pm' ],
     'Pod/Usage.pm'                  => sub {  # from Pod::Usage (as of 1.61)
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.