I suspect that we can not rely on $? alone.
From this perlmonks post
$! having a non-false value is not an indication anything is wrong.
In reply to Re: Answer: How do I get both the return value and text? backticks vs. system()
by david2008
in thread How do I get both the return value and text? backticks vs. system()
by flymolo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |