Author: lwall
Date: 2009-03-05 00:06:26 +0100 (Thu, 05 Mar 2009)
New Revision: 25695

tweak result object from {''} into {'?'} 

Modified: docs/Perl6/Spec/S02-bits.pod
--- docs/Perl6/Spec/S02-bits.pod        2009-03-04 22:44:06 UTC (rev 25694)
+++ docs/Perl6/Spec/S02-bits.pod        2009-03-04 23:06:26 UTC (rev 25695)
@@ -1562,7 +1562,7 @@
 All prefix sigil operators accept one positional argument, evaluated in
 item context as a rvalue.  They can interpolate in strings if called with
-parentheses.  The special syntax form C<$()> translates into C<$( $/{''} // 
Str($/) )> 
+parentheses.  The special syntax form C<$()> translates into C<$( $<?> // 
Str($/) )> 
 to operate on the current match object; similarly C<@()> and C<%()> can
 extract positional and named submatches.

Modified: docs/Perl6/Spec/S03-operators.pod
--- docs/Perl6/Spec/S03-operators.pod   2009-03-04 22:44:06 UTC (rev 25694)
+++ docs/Perl6/Spec/S03-operators.pod   2009-03-04 23:06:26 UTC (rev 25695)
@@ -1973,7 +1973,7 @@
     item foo()
 The new name for PerlĀ 5's C<scalar> contextualizer.  Equivalent to C<$(...)>
-(except that empty C<$()> means C<$/{''} // Str($/)>, while empty C<item()> 
yields C<Failure>).
+(except that empty C<$()> means C<$<?> // Str($/)>, while empty C<item()> 
yields C<Failure>).
 We still call the values scalars, and talk about "scalar operators", but
 scalar operators are those that put their arguments into item context.

Modified: docs/Perl6/Spec/S05-regex.pod
--- docs/Perl6/Spec/S05-regex.pod       2009-03-04 22:44:06 UTC (rev 25694)
+++ docs/Perl6/Spec/S05-regex.pod       2009-03-04 23:06:26 UTC (rev 25695)
@@ -2402,7 +2402,7 @@
 However, sometimes you would like an alternate scalar value to ride
 along with the match.  This is called a I<result> object, and it rides
 along in the null named key.
-C<$()> is a shorthand for C<$($/{''} // Str($/))>.
+C<$()> is a shorthand for C<$($<?> // Str($/))>.
 Therefore C<$()> is usually just the entire match string, but
 you can override that by calling C<make> inside a regex:
@@ -2413,7 +2413,7 @@
         # match succeeds -- ignore the rest of the regex
-This puts the result object into C<$/{''}>.  If a result object is
+This puts the result object into C<$<?>>.  If a result object is
 returned that way, it may be of any type, not just a string.
 This makes it convenient to build up an abstract syntax tree of
 arbitrary node types.

Reply via email to