Help for this page

Select Code to Download


  1. or download this
    my @array_of_hashes = ( {hashkey1=>$hashval1,
                 hashkey2=>$hashval2},
    ...
                 hashkey2=>$hashval2}
                ...
                );
    
  2. or download this
    # to modify what's in the second hash
    $array_of_hashes[1]->{hashkey1} = "ay carumba!";
    ...
            print "$_ => ", $hashref->{$_}, "\n";
        }
    }