};
}
return;
- }
+ };
}
else {
-
*{"${class}::INC"} = sub {
- if (my $fat = $_[0]{$_[1]}) {
+ if (my $fat = $_[0]{$_[1]}) {
open my $fh, '<', \$fat
or die "FatPacker error loading $_[1] (could be a perl installation issue?)";
return $fh;
}
return;
};
-
}
unshift @INC, bless \%fatpacked, $class;
my @files = sort $INC[0]->files;
- is_deeply( \@files, [ 't/mod/a.pm',
- 't/mod/b.pm',
- 't/mod/c.pm',
- 't/mod/cond.pm',
- ], "\$INC[0]->files returned the files" );
+ is_deeply( \@files, [
+ 't/mod/a.pm',
+ 't/mod/b.pm',
+ 't/mod/c.pm',
+ 't/mod/cond.pm',
+ ], "\$INC[0]->files returned the files" );
}