- or download this
print "Array:", $array[0]->{"one"}, "\n";
print "Hash:", $hash{"ref"}->{"one"}, "\n";
print "Ref:", $ref->{"one"}, "\n";
- or download this
my $a = { a => { b => { c => ['d'] } }};
print ">",$a->{'a'}->{'b'}->{'c'}->[0],"<\n";
print ">",$a->{'a'}{'b'}{'c'}[0],"<\n";
- or download this
Arrow Rule
...
we can write "$a[0][1] = 23"; it means the same thing.
Now it really looks like two-dimensional arrays!