in reply to Re^2: How to know the exit status of sub-commands running with backticks in Perl.
in thread How to know the exit status of sub-commands running with backticks in Perl.

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 $!.

True laziness is hard work
  • Comment on Re^3: How to know the exit status of sub-commands running with backticks in Perl.

Replies are listed 'Best First'.
Re^4: How to know the exit status of sub-commands running with backticks in Perl.
by ikegami (Patriarch) on Apr 06, 2012 at 21:22 UTC
    Only if $? == -1.