for my $item ( 0 .. $#{$ref} ) { $hash_ref = $ref->[$item]; print "$hash_ref->{'key1'}; }