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

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

From:
autrijus
Date:
April 23, 2006 08:03
Subject:
[svn:perl6-synopsis] r8917 - doc/trunk/design/syn
Message ID:
20060423150251.315EECB9BC@x12.develooper.com
Author: autrijus
Date: Sun Apr 23 08:02:50 2006
New Revision: 8917

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

Log:
* S02: The *() form now means *($/).
* Clarified that $() etc are term-level macros. 

Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Sun Apr 23 08:02:50 2006
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@wall.org>
   Date: 10 Aug 2004
-  Last Modified: 22 Apr 2006
+  Last Modified: 23 Apr 2006
   Number: 2
-  Version: 29
+  Version: 30
 
 This document summarizes Apocalypse 2, which covers small-scale
 lexical items and typological issues.  (These Synopses also contain
@@ -603,8 +603,9 @@
 
 All prefix sigil operators accept one positional argument, evaluated in
 scalar context as a rvalue.  They can interpolate in strings if called with
-parentheses.  The C<$()>, C<@()> and C<%()> forms defaults to C<$/> as the
-implicit argument.
+parentheses.  The special syntax form C<$()> translates into C<$( $/ )> 
+to operate on the current match object; the same applies to C<@()>, C<%()> and
+C<*()> forms.
 
 C<Capture> objects fill the ecological niche of references in Perl 6.
 You can think of them as "fat" references, that is, references that



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