separate tracing to a method
Sawyer X [Thu, 23 Feb 2012 12:21:08 +0000 (14:21 +0200)]
lib/App/FatPacker.pm

index 0c11330..cdbb400 100644 (file)
@@ -93,6 +93,12 @@ sub script_command_trace {
     $arg .= "," . join ",", @additional_use;
   }
 
+  $self->trace($arg, $args);
+}
+
+sub trace {
+  my ($self, $arg, $args) = @_;
+
   {
     local $ENV{PERL5OPT} = '-MApp::FatPacker::Trace'.$arg;
     system $^X, @$args;