I have a perl script that calls another program in such a way that it records the results of the command in a string. i.e.
$program_results = `program $ARGV `;
I would like to have perl check the status of the command, for instance did it complete with a non-error of zero - or did it error out somehow. Is there a way of checking the status of a program that is run while capturing the output?