system( $some_shell_command ) or die "bad news..." #### $failed = system( $some_command ); die "bad news..." if ( $failed );