my %initial_inc;
sub import {
- my(undef, $file, @extras) = @_;
+ my (undef, $file, @extras) = @_;
$trace_file = $file || '>>fatpacker.trace';
# For filtering out our own deps later.
open my $trace, $trace_file
or die "Couldn't open $trace_file to trace to: $!";
- for my $inc(keys %INC) {
+ for my $inc (keys %INC) {
next if exists $initial_inc{$inc};
+ next unless defined($INC{$inc}) and $INC{$inc} =~ /\Q${inc}\E\Z/;
print $trace "$inc\n";
}
}
perl -MApp::FatPacker::Trace [...]
-You can control the paramters to the import using an equal sign, as such:
+You can control the parameters to the import using an equal sign, as such:
# send the parameter "hello"
perl -MApp::FatPacker::Trace=hello [...]