Help for this page

Select Code to Download


  1. or download this
    # bitfield format: xxxMMMxx
    
    my @msgs = ( 'a' .. 'i' );
    my $msg = $msgs[ ( $bitfield >> 2 ) && 7 ];
    
  2. or download this
    bit15         bit0
    |                |
    ...
    C = Core dumped?
    S = Signal that caused program to exit
    E = Process's exit code.
    
  3. or download this
    $core_dumped = ($? >> 15) & 1;
    $signal      = ($? >> 8) & 127;
    $exit_code   = $? & 255