You may wish to read perlvar in addition to the system documentation already mentioned. Search for $?.
Note too that if backticks fails it will set the special variable $!.
In reply to Re^3: How to know the exit status of sub-commands running with backticks in Perl.
by GrandFather
in thread How to know the exit status of sub-commands running with backticks in Perl.
by kkurnala
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |