in reply to How to know the exit status of sub-commands running with backticks in Perl.

It sets $? like system.
  • Comment on Re: How to know the exit status of sub-commands running with backticks in Perl.
  • Download Code

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

    can you please explain a little more? Thanks :)

      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.