in reply to Re^2: Get AoH values into array
in thread Get AoH values into array

Unless you want a recursive solution, there will be a loop, either explicity with for, while etc, or implicitly with map, grep etc.

Some people (but not me) might prefer something like:

my @husbands = husbands( @AoH ); sub husbands { my $this = shift; return ( $this->{husband}, husbands( @_ ) ) if @_; return $this->{husband}; }

Look Ma, no loops!