use File::Path qw(mkpath rmtree);
use B qw(perlstring);
-our $VERSION = '0.009009'; # 0.9.9
+our $VERSION = '0.009012'; # 0.9.012
$VERSION = eval $VERSION;
$files{File::Spec::Unix->abs2rel($File::Find::name,$dir)} = do {
local (@ARGV, $/) = ($File::Find::name); <>
};
+ close ARGV;
}, $dir);
}
my $start = stripspace <<' END_START';
unshift @INC, sub {
if (my $fat = $fatpacked{$_[1]}) {
+ if ($] < 5.008) {
+ return sub {
+ return 0 unless length $fat;
+ $fat =~ s/^([^\n]*\n?)//;
+ $_ = $1;
+ return 1;
+ };
+ }
open my $fh, '<', \$fat
or die "FatPacker error loading $_[1] (could be a perl installation issue?)";
return $fh;
print join "\n", $start, @segments, $end;
}
+=encoding UTF-8
+
=head1 NAME
App::FatPacker - pack your dependencies onto your script file