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

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

Thread Next
From:
larry
Date:
August 21, 2006 09:03
Subject:
[svn:perl6-synopsis] r11287 - doc/trunk/design/syn
Message ID:
20060821160326.4E9DFCB9BB@x12.develooper.com
Author: larry
Date: Mon Aug 21 09:03:25 2006
New Revision: 11287

Modified:
   doc/trunk/design/syn/S05.pod
   doc/trunk/design/syn/S06.pod

Log:
Clarified that leading whitespace eats all subsequent whitespace.


Modified: doc/trunk/design/syn/S05.pod
==============================================================================
--- doc/trunk/design/syn/S05.pod	(original)
+++ doc/trunk/design/syn/S05.pod	Mon Aug 21 09:03:25 2006
@@ -14,9 +14,9 @@
    Maintainer: Patrick Michaud <pmichaud@pobox.com> and
                Larry Wall <larry@wall.org>
    Date: 24 Jun 2002
-   Last Modified: 16 Aug 2006
+   Last Modified: 21 Aug 2006
    Number: 5
-   Version: 32
+   Version: 33
 
 This document summarizes Apocalypse 5, which is about the new regex
 syntax.  We now try to call them I<regex> rather than "regular
@@ -641,13 +641,8 @@
 
     <foo('bar')>
 
-If the first character is a colon, the rest of the text (following any
-whitespace) is passed as a string, so the previous may also be written as:
-
-    <foo: bar>
-
-If the first character is whitespace, the subsequent text is passed as regex,
-so:
+If the first character after the angle is whitespace, the
+subsequent text (following any whitespace) is passed as regex, so:
 
     <foo bar>
 
@@ -655,6 +650,15 @@
 
     <foo(/bar/)>
 
+To pass a regex with leading whitespace you must use the parenthsized form.
+
+If the first character is a colon, the rest of the text (following any
+whitespace) is passed as a string, so the previous may also be written as:
+
+    <foo: bar>
+
+To pass a string with leading whitespace you must use the parenthsized form.
+
 If the first character is a plus or minus, the initial identifier is taken
 as a character class, so
 

Modified: doc/trunk/design/syn/S06.pod
==============================================================================
--- doc/trunk/design/syn/S06.pod	(original)
+++ doc/trunk/design/syn/S06.pod	Mon Aug 21 09:03:25 2006
@@ -1654,7 +1654,7 @@
 
     sub system {
         ...
-        return $error but false if $error;
+        return $error but False if $error;
         return 0 but True;
     }
 

Thread Next


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