Can you please provide good explanation about the following perl code snippet. I got some idea from google but still lots of basic confusion is there. great help if you can provide small notes on it
$exit_value = $? >> 8;
$signal_num = $? & 127;
$dumped_core = $? & 128;
Quoting The Doc:
>> 8gives us the higher byte of a 16-bit word.& 127is essentially the same as& 0b01111111, giving out the lower 7-bit part of that word.& 128is the same as& 0b10000000, which is basically checking for the 8th bit of the result.