in reply to Re: Dereference array-elements
in thread Dereference array-elements

my %hash = %{(grep {exists $_ -> {foo}} @hashes) [0] || {}};

And then it even works if there's no match.

Abigail