[perl #64792] Document $? in perlfunc/exit
authorFather Chrysostomos <sprout@cpan.org>
Wed, 1 Dec 2010 22:44:01 +0000 (14:44 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 1 Dec 2010 22:44:42 +0000 (14:44 -0800)
pod/perlfunc.pod

index 6a498bc..bf5224f 100644 (file)
@@ -1865,7 +1865,8 @@ which can be trapped by an C<eval>.
 The exit() function does not always exit immediately.  It calls any
 defined C<END> routines first, but these C<END> routines may not
 themselves abort the exit.  Likewise any object destructors that need to
-be called are called before the real exit.  If this is a problem, you
+be called are called before the real exit.  C<END> routines and destructors
+can change the exit status by modifying C<$?>. If this is a problem, you
 can call C<POSIX:_exit($status)> to avoid END and destructor processing.
 See L<perlmod> for details.