In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/88aeef83d79fbcd4dab43cc58155923e65a6d82e?hp=03c5b8df4a8c3cba532f55db5eac03b226289f2f>
- Log ----------------------------------------------------------------- commit 88aeef83d79fbcd4dab43cc58155923e65a6d82e Author: Tony Cook <[email protected]> Date: Tue Feb 23 15:09:39 2016 +1100 [perl #127386] clarify that exit in the die pseudo-code is perl's exit ----------------------------------------------------------------------- Summary of changes: pod/perlfunc.pod | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 87c61f4..ce65a7b 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1495,6 +1495,10 @@ determined from the values of C<$!> and C<$?> with this pseudocode: exit $? >> 8 if $? >> 8; # child exit status exit 255; # last resort +As with L</exit>, C<$?> is set prior to unwinding the call stack; any +DESTROY or END handlers can then alter this value, and thus Perl's +exit code. + The intent is to squeeze as much possible information about the likely cause into the limited space of the system exit code. However, as C<$!> is the value -- Perl5 Master Repository
