in reply to Re^3: Parallel::ForkManager problem
in thread Parallel::ForkManager problem

If you look in perlvar, you will see that $? is the status returned by the last closed pipe.

well, no, you have stoped reading too soon:

$? The status returned by the last pipe close, backtick (``) command, successful call to wait() or waitpid(), or from the system() operator.
in my code, it is set to the exit code of the child by waitpid.

It is negated because by convention, exit code 0 means success and any other value failure. Also because this way I don't have to split $? into the signal part and the exit code:

$signal = $? & 255; $exit_code = $? >> 8;

Replies are listed 'Best First'.
Re^5: Parallel::ForkManager problem
by Limbic~Region (Chancellor) on Mar 28, 2006 at 16:20 UTC
    salva,
    There were some missing ... as I didn't want to copy and paste the whole entry. My intention was to get Murcia reading for themself.

    Cheers - L~R