ansh batra has asked for the wisdom of the Perl Monks concerning the following question:

hi monks
i want to retrieve exit status value of shell command in a perl program
$? give it but i have read at many places that we need to shift 8 bits right to get exact value
please help me getting out of this mess!!!

Replies are listed 'Best First'.
Re: to get exact exit status value
by Anonymous Monk on Nov 01, 2011 at 06:03 UTC
      what i am trying to say is that value in $? is not the exact/true exit status value of shell command.
      or is it?
      read the documentation
        What?