in reply to Re: 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.

can you please explain a little more? Thanks :)

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

Replies are listed 'Best First'.
Re^3: How to know the exit status of sub-commands running with backticks in Perl.
by GrandFather (Saint) on Apr 05, 2012 at 22:15 UTC

    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
      Only if $? == -1.