1 package App::FatPacker::Trace;
4 use warnings FATAL => 'all';
11 my(undef, $file, @extras) = @_;
13 $trace_file = $file || '>>fatpacker.trace';
14 # For filtering out our own deps later.
15 # (Not strictly required as these are core only and won't have packlists, but
19 # Use any extra modules specified
20 eval "use $_" for @extras;
26 return unless $trace_file; # not imported
28 open my $trace, $trace_file
29 or die "Couldn't open $trace_file to trace to: $!";
31 for my $inc(keys %INC) {
32 next if exists $initial_inc{$inc};
33 print $trace "$inc\n";