my @result = $object->cmd('test -f foo.txt; echo $?')