my %hash = %{(grep {exists $_ -> {foo}} @hashes) [0] || {}};
And then it even works if there's no match.
Abigail
In reply to Re: Dereference array-elements
by Abigail-II
in thread Dereference array-elements
by very empty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |