X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FApp%2FFatPacker.pm;h=ccd01769c6c473c3964032b83784ba2488a63a66;hb=7a3662c8657b2d0b15a467e7b09cbd449bc5bb03;hp=4fc0c06c58160bee9fc219829d857ef5be0978b3;hpb=b4704b1ae0f78b1694f495083a3ccc91518be63f;p=p5sagit%2FApp-FatPacker.git diff --git a/lib/App/FatPacker.pm b/lib/App/FatPacker.pm index 4fc0c06..ccd0176 100644 --- a/lib/App/FatPacker.pm +++ b/lib/App/FatPacker.pm @@ -89,20 +89,22 @@ sub script_command_trace { } }; - if(@additional_use) { - $arg .= "," . join ",", @additional_use; - } - $self->trace( - output => $arg, + use => \@additional_use, args => $args, + output => $arg, ); } sub trace { my ($self, %opts) = @_; - my $output = $opts{'output'}; + my $use = $opts{'use'}; my $args = $opts{'args'}; + my $output = $opts{'output'}; + + if(@$use) { + $output .= "," . join ",", @$use; + } { local $ENV{PERL5OPT} = '-MApp::FatPacker::Trace'.$output;