note about compile failures and END blocks (from M.J.T. Guy)
authorGurusamy Sarathy <gsar@cpan.org>
Fri, 28 Apr 2000 20:51:21 +0000 (20:51 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Fri, 28 Apr 2000 20:51:21 +0000 (20:51 +0000)
p4raw-id: //depot/perl@6007

pod/perl56delta.pod
pod/perlmod.pod

index 2117c70..377e448 100644 (file)
@@ -1803,7 +1803,7 @@ cause silent failures.  This has been fixed.
 Prior versions used to run BEGIN B<and> END blocks when Perl was
 run in compile-only mode.  Since this is typically not the expected
 behavior, END blocks are not executed anymore when the C<-c> switch
-is used.
+is used, or if compilation fails.
 
 See L<CHECK blocks> for how to run things when the compile phase ends.
 
index 676940e..6bec46b 100644 (file)
@@ -233,7 +233,7 @@ being blown out of the water by a signal--you have to trap that yourself
 (if you can).)  You may have multiple C<END> blocks within a file--they
 will execute in reverse order of definition; that is: last in, first
 out (LIFO).  C<END> blocks are not executed when you run perl with the
-C<-c> switch.
+C<-c> switch, or if compilation fails.
 
 Inside an C<END> subroutine, C<$?> contains the value that the program is
 going to pass to C<exit()>.  You can modify C<$?> to change the exit