in reply to Re: Dereferencing array of hashes
in thread Dereferencing array of hashes

...it's not necessary to use a C-style loop here

Indeed. In fact I'd simplify things even further by not using an array index at all:

for my $item ( @AoH ) { for my $key ( keys %$item ) { print "$key => $item->{ $key }\n"; } }

Replies are listed 'Best First'.
Re^3: Dereferencing array of hashes
by Kenosis (Priest) on Nov 11, 2013 at 20:41 UTC

    Oh, this is smart++! Am glad you added this comment!

      Thanks. But Laurent_R beat me to it by a clear 30 seconds minutes. Upvote him instead.

      Update: Yes, obviously, minutes not secconds. Thanks Laurent_R and AnomalousMonk!

        Thanks. But Laurent_R beat me to it by a clear 30 seconds. Upvote him instead.

        I guess you mean 30 minutes, don't you? ;-)

        Thanks for the upvote recommendation anyway. :-)

        Clearly, 30 minutes!

        Duly noted, but have upvoted you both...