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 <[EMAIL PROTECTED]> and Larry Wall <[EMAIL PROTECTED]> 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; }