in reply to Re^2: Capturing the stdout and exit code from a program piped to perl
in thread Capturing the stdout and exit code from a program piped to perl
Well, now that I think about it, I translated into English the original message, to make it clearer to the English-speaking reader.ls foobar.* | perl -E ' $return_code = `echo $?`; say scalar $return +_code;' ls: cannot access foobar.*: A file or directory in the path name does +not exist. 0
|
|---|