my $failure = system( "c_binary ..." ); # system returns exit status die $! if ( $failure ); # which is normally non-zero on failure