Author: larry
Date: Mon Aug 14 18:38:44 2006
New Revision: 10944

Modified:
   doc/trunk/design/syn/S04.pod

Log:
Constrained FIRST, NEXT, and LAST to work only at top level of loop block.


Modified: doc/trunk/design/syn/S04.pod
==============================================================================
--- doc/trunk/design/syn/S04.pod        (original)
+++ doc/trunk/design/syn/S04.pod        Mon Aug 14 18:38:44 2006
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <[EMAIL PROTECTED]>
   Date: 19 Aug 2004
-  Last Modified: 11 Aug 2006
+  Last Modified: 14 Aug 2006
   Number: 4
-  Version: 33
+  Version: 34
 
 This document summarizes Apocalypse 4, which covers the block and
 statement syntax of Perl.
@@ -699,6 +699,9 @@
 of C<LEAVE>, and for execution order are treated as part of the queue of
 C<LEAVE> blocks.
 
+C<FIRST>, C<NEXT>, and C<LAST> are meaningful only within the lexical scope
+of a loop, and may occur only at the top level of such a loop block.
+
 [Note: the name C<FIRST> used to be associated with C<state>
 declarations.  Now it is associated only with loops.  See the C<START>
 above for C<state> semantics.]

Reply via email to