SI/tools.pm
branch2010-01-17
changeset 10 23dd30396607
parent 7 03ca6d811a17
child 11 42c603eb6301
equal deleted inserted replaced
7:03ca6d811a17 10:23dd30396607
     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 $?;