Author: larry
Date: Mon Apr 3 15:59:38 2006
New Revision: 8556
Modified:
doc/trunk/design/syn/S09.pod
Log:
Fixed P5isms in P6 code.
Modified: doc/trunk/design/syn/S09.pod
==============================================================================
--- doc/trunk/design/syn/S09.pod (original)
+++ doc/trunk/design/syn/S09.pod Mon Apr 3 15:59:38 2006
@@ -688,18 +688,18 @@
In Perl 6 these read-only operations are indeed non-destructive:
my %hash;
- exists $hash{foo}{bar}; # %hash is still empty
+ exists %hash<foo><bar>; # %hash is still empty
But these ones I<do> autovivify:
my %hash;
- my $val := $hash{foo}{bar};
+ my $val := %hash<foo><bar>;
my @array;
- my $ref = \$array[0][0]; # $ref is an Arguments object - see S02
+ my $ref = [EMAIL PROTECTED]; # $ref is an Arguments object - see S02
my %hash;
- $hash{foo}{bar} = "foo"; # duh
+ %hash<foo><bar> = "foo"; # duh
This rule applies to C<Array>, C<Hash>, and C<Scalar> container objects.