my $rc = system(...); unless ($rc) { print "system failed with rc = $rc!\n"; }