$hashref=grep {has_the_right_primary_key($_)} @hashes; %hash=$$hashref; [download]
In reply to Dereference array-elements by very empty