Help for this page
my $rc = system "some command"; if ($rc != $whatever_return_code_you_expect) { # do some debugging stuff }