in reply to Re: Return code from calling qx
in thread Return code from calling qx

Think in terms of binary:
100000000 (binary) = 256 (decimal)
If you shift it 8 bits to the right (>> 8) you get:
1 (binary) = 1 (decimal)
Hope this helps a little.

-John

Replies are listed 'Best First'.
Re^3: Return code from calling qx
by f50bodykit (Initiate) on Oct 27, 2009 at 20:24 UTC
    Yes that helps. Thanks John.
      ..with ends up with this demostrative scripts:
      print "the command -->@ARGV<-- returns:\n\n"; qx !@ARGV!; print "\n\n\$? $? (return status)\n", "\$?>>8 ",$?>>8, "(exit value of the subprocess)\n", "\$?&127 ",$?&127,"( which signal, if any, the process died from +)\n", "\$?&128 ",$?&128," (core dump)\n";


      Lor*