wexitstatus#

Exit code of a child that terminated normally.

Synopsis#

system($cmd);
my $code = POSIX::WEXITSTATUS($?);

What you get back#

The low 8 bits of the child’s exit() argument. Only meaningful when WIFEXITED($status) is true.

Differences from upstream#

Fully compatible with upstream POSIX.