Author: lwall
Date: 2010-01-26 17:02:43 +0100 (Tue, 26 Jan 2010)
New Revision: 29588

Modified:
   docs/Perl6/Spec/S03-operators.pod
Log:
[S03] fossil dug up by pmichaud++


Modified: docs/Perl6/Spec/S03-operators.pod
===================================================================
--- docs/Perl6/Spec/S03-operators.pod   2010-01-26 14:53:49 UTC (rev 29587)
+++ docs/Perl6/Spec/S03-operators.pod   2010-01-26 16:02:43 UTC (rev 29588)
@@ -2737,7 +2737,7 @@
     $a = [1, 2, 3];             # force construction (probably best practice)
     $a = (1, 2, 3);             # force grouping as syntactic item
     $a = list 1, 2, 3;          # force grouping using listop precedence
-    $a = @ 1, 2, 3;             # same thing
+    $a = @(1, 2, 3);            # same thing
     @$a = 1, 2, 3;              # force list assignment
     $a[] = 1, 2, 3;             # same thing
 
@@ -2747,7 +2747,7 @@
 
     @a[foo()] = bar();           # foo() and bar() called in list context
     @a[item foo()] = item bar(); # foo() and bar() called in item context
-    @a[$ foo()] = $ bar();       # same thing
+    @a[$ foo()] = $(bar());      # same thing
     @a[+foo()] = +bar();         # foo() and bar() called in numeric context
     %a{~foo()} = ~bar();         # foo() and bar() called in string context
 

Reply via email to