Author: audreyt
Date: Mon Aug 28 07:34:29 2006
New Revision: 11527

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

Log:
* S02: minor grammar and syntax nit from p6l feedbacks.

Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod        (original)
+++ doc/trunk/design/syn/S02.pod        Mon Aug 28 07:34:29 2006
@@ -1396,13 +1396,17 @@
 When used as a subscript it performs a slice equivalent to C<{'foo','bar'}>.
 Elsewhere it is equivalent to a parenthesisized list of strings:
 C<< ('foo','bar') >>.  Since parentheses are generally reserved just for
-precedence grouping, they merely autointepolate in list context.  Therefore
+precedence grouping, they merely autointerpolate in list context.  Therefore
 
-    @a = 1, < 2 3 >, 4;
+    @a = 1, < x y >, 2;
 
-is equivalent to
+is equivalent to:
+
+    @a = 1, ('x', 'y'), 2;
+
+which is the same as:
 
-    @a = 1, 2, 3, 4;
+    @a = 1, 'x', 'y', 2;
 
 In scalar context, though, the implied parentheses are not removed, so
 
@@ -1410,12 +1414,12 @@
 
 is equivalent to:
 
-    $a = ('a','b');
+    $a = ('a', 'b');
 
 which, because the list is assigned to a scalar, is autopromoted into
 an Array object:
 
-    $a = ['a','b'];
+    $a = ['a', 'b'];
 
 Likewise, if bound to a scalar parameter, C<< <a b> >> will be
 treated as a single list object, but if bound to a slurpy parameter,

Reply via email to