: : : much hand waving.... : my $output=""; eval " $output=`my_command -v`; "; if ($@){ print "it broke!\n"; } else { : whatever... }