This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #127386] clarify that exit in the die pseudo-code is perl's exit
authorTony Cook <tony@develop-help.com>
Tue, 23 Feb 2016 04:09:39 +0000 (15:09 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 23 Feb 2016 04:09:39 +0000 (15:09 +1100)
pod/perlfunc.pod

index 87c61f4..ce65a7b 100644 (file)
@@ -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