This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c5b8d
)
[perl #127386] clarify that exit in the die pseudo-code is perl's exit
author
Tony Cook
<tony@develop-help.com>
Tue, 23 Feb 2016 04:09:39 +0000
(15:09 +1100)
committer
Tony Cook
<tony@develop-help.com>
Tue, 23 Feb 2016 04:09:39 +0000
(15:09 +1100)
pod/perlfunc.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlfunc.pod
b/pod/perlfunc.pod
index
87c61f4
..
ce65a7b
100644
(file)
--- 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