Skip Menu |

This queue is for tickets about the App-FatPacker CPAN distribution.

Report information
The Basics
Id: 96506
Status: patched
Priority: 0/
Queue: App-FatPacker

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.009018
  • 0.010000
  • 0.010001
Fixed in: (no value)



Subject: Perl 5.6 @INC hook is broken (overly sensitive to whitespace in fatpacked modules)
An example script and module to reproduce this can be found here: https://gist.github.com/tobyink/425e3ca9ae6591d499c1 Changing the definition of the xyz sub to this fixes it: sub xyz { shift() ? 666 : 999; } So it is whitespace dependent!
Here is a fix which uses File::Temp (in core since 5.6.1)... if ($] < 5.008) { *{"${class}::INC"} = sub { if (my $fat = $_[0]{$_[1]}) { require File::Temp; my $io = File::Temp::tempfile(); print {$io} $fat; seek $io, 0, 0; return $io; } return; }; }
Fixed in repo.