http://www.perlmonks.org?node_id=345747


in reply to Re: Capturing return value and STDOUT from system like calls
in thread Capturing return value and STDOUT from system like calls

from system:
$exit_value = $? >> 8; $signal_num = $? & 127; $dumped_core = $? & 128;