Your answer was better before the update. qx() can set $! if there was a failure in the parent process. But qx() does always set $? and you need to look at $? in order to figure out if $! was also set. Despite not finding this in the documentation at the moment, I believe that $? being -1 means that $! should be checked / reported.
- tye
In reply to Re^2: Bad file descriptor when using backticks? (yes, $!)
by tye
in thread Bad file descriptor when using backticks?
by ApacheMan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |