```{index} single: wexitstatus; POSIX function ``` ```{index} single: POSIX::wexitstatus; Perl function ``` # wexitstatus Exit code of a child that terminated normally. ## Synopsis ```perl 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.