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

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

From:
larry
Date:
June 16, 2006 16:54
Subject:
[svn:perl6-synopsis] r9683 - doc/trunk/design/syn
Message ID:
20060616235353.A2363CBA87@x12.develooper.com
Author: larry
Date: Fri Jun 16 16:53:52 2006
New Revision: 9683

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

Log:
Cut-n-paste error noted by TheDamian++.


Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod	(original)
+++ doc/trunk/design/syn/S03.pod	Fri Jun 16 16:53:52 2006
@@ -205,13 +205,13 @@
     @a[foo()] = bar();		# @a[1] = [<a b c>]
 
     sub foo { return (1) }
-    @a[foo()] = bar();		# (@a[1,2,3]) = <a b c>
+    @a[foo()] = bar();		# (@a[1]) = <a b c>
 
     sub foo { return 1 }
-    @a[foo(),] = bar();		# (@a[1,2,3]) = <a b c>
+    @a[foo(),] = bar();		# (@a[1]) = <a b c>
 
     sub foo { return 1 }
-    (@a[foo()]) = bar();	# (@a[1,2,3]) = <a b c>
+    (@a[foo()]) = bar();	# (@a[1]) = <a b c>
 
 Those are all parsed as list assignments, but we get different run-time
 behaviors based on the run-time type of the left side.



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