Help for this page

Select Code to Download


  1. or download this
    print "Array:", $array[0]->{"one"}, "\n";
    print "Hash:", $hash{"ref"}->{"one"}, "\n";
    print "Ref:", $ref->{"one"}, "\n";
    
  2. or download this
    my $a = { a => { b => { c => ['d'] } }};
    print ">",$a->{'a'}->{'b'}->{'c'}->[0],"<\n";
    print ">",$a->{'a'}{'b'}{'c'}[0],"<\n";
    
  3. 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!