in reply to Line Number Confusion
if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died with signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "child exited with value %d\n", $? >> 8; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Line Number Confusion
by hmeharward (Novice) on Oct 01, 2015 at 16:24 UTC | |
by graff (Chancellor) on Oct 01, 2015 at 22:33 UTC |