develooper Front page | perl.perl6.language | Postings from May 2006

[svn:perl6-synopsis] r9119 - doc/trunk/design/syn

From:
larry
Date:
May 5, 2006 15:09
Subject:
[svn:perl6-synopsis] r9119 - doc/trunk/design/syn
Message ID:
20060505220252.A0F75CBA47@x12.develooper.com
Author: larry
Date: Fri May  5 15:02:52 2006
New Revision: 9119

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

Log:
Clarified that parens are required on C-style loop.


Modified: doc/trunk/design/syn/S04.pod
==============================================================================
--- doc/trunk/design/syn/S04.pod	(original)
+++ doc/trunk/design/syn/S04.pod	Fri May  5 15:02:52 2006
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@wall.org>
   Date: 19 Aug 2004
-  Last Modified: 30 Apr 2006
+  Last Modified: 5 May 2006
   Number: 4
-  Version: 19
+  Version: 20
 
 This document summarizes Apocalypse 4, which covers the block and
 statement syntax of Perl.
@@ -206,7 +206,8 @@
 	...
     }
 
-As seen in the previous section, the 3-part loop spec may be entirely
+As in C, the parentheses are required if you supply the 3-part spec; however,
+as shown in the previous section, the 3-part loop spec may be entirely
 omitted to write an infinite loop.  If you omit the 3-part loop spec
 you may add a C<while> or C<until> statement modifier at the end
 to make it a "repeat at least once" loop.  Unlike C<do> in Perl 5,



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About