my @array = ( { 'State' => 'Maine', 'Town' => 'Portland' }, { 'State' => 'New Hampshire', 'Town' => 'Concord' }, { 'State' => 'Florida', 'Town' => 'Jacksonville' }, { 'State' => 'North Carolina', 'Town' => 'Waynesville' } ); foreach my $city (@array) { # which contains refs to hashes print($city->{State}, "\n"); # with keys State. }