Author: lwall
Date: 2009-03-09 23:33:54 +0100 (Mon, 09 Mar 2009)
New Revision: 25774
Modified:
docs/Perl6/Spec/S05-regex.pod
Log:
~ and + now just stringify/numify the matched string, not the result object
Modified: docs/Perl6/Spec/S05-regex.pod
===================================================================
--- docs/Perl6/Spec/S05-regex.pod 2009-03-09 22:24:01 UTC (rev 25773)
+++ docs/Perl6/Spec/S05-regex.pod 2009-03-09 22:33:54 UTC (rev 25774)
@@ -14,9 +14,9 @@
Maintainer: Patrick Michaud <[email protected]> and
Larry Wall <[email protected]>
Date: 24 Jun 2002
- Last Modified: 8 Mar 2009
+ Last Modified: 9 Mar 2009
Number: 5
- Version: 89
+ Version: 90
This document summarizes Apocalypse 5, which is about the new regex
syntax. We now try to call them I<regex> rather than "regular
@@ -2411,8 +2411,8 @@
=item *
-In string context it evaluates to the stringified value of its
-I<result object>, which is usually the entire matched string:
+In string context it evaluates to the stringified value of its match,
+which is usually the entire matched string:
print %hash{ "{$text ~~ /<.ident>/}" };
# or equivalently:
@@ -2422,8 +2422,8 @@
=item *
-In numeric context it evaluates to the numeric value of its
-I<result object>, which is usually the entire matched string:
+In numeric context it evaluates to the numeric value of its match,
+which is usually the entire matched string:
$sum += /\d+/;
# or equivalently: