$ perl -E ' @c = `ls foobar.*`; $return_code = `echo $?`; say scalar $return_code;' ls: impossible to find foobar.*: No such file or directory 512