SI/tools.pm
changeset 11 42c603eb6301
parent 9 1a6f6cfc46ea
parent 10 23dd30396607
child 12 a1aee1136609
equal deleted inserted replaced
9:1a6f6cfc46ea 11:42c603eb6301
     1 package SI::tools;
     1 package SI::tools;
       
     2 
       
     3 use if $ENV{DEBUG} ~~ /tools|all/ => "Smart::Comments";
     2 
     4 
     3 use strict;
     5 use strict;
     4 use warnings;
     6 use warnings;
     5 use base "Exporter";
     7 use base "Exporter";
     6 our @EXPORT = qw(&run &verbose);
     8 our @EXPORT = qw(&run &verbose);
     7 use if $ENV{DEBUG} ~~ /tools|all/ => "Smart::Comments";
       
     8 
     9 
     9 sub run(@) {
    10 sub run(@) {
    10 	system(@_);
    11 	system(@_);
    11 	die "$_[0] failed with exit code " . ($? >> 8) . "\n"
    12 	die "$_[0] failed with exit code " . ($? >> 8) . "\n"
    12 	if $?;
    13 	if $?;