You'd think this impossible, but I was just testing with a broken perl
install where PerlIO::scalar's XS module didn't load.
"Can't locate XXX.pm in @INC" was a somewhat flummoxing error.
unshift @INC, sub {
if (my $fat = $fatpacked{$_[1]}) {
- open my $fh, '<', \$fat;
+ open my $fh, '<', \$fat
+ or die "FatPacker error loading $_[1] (could be a perl installation issue?)";
return $fh;
}
return