in reply to Find number of unique values in hash
my $i; for (values %hoh) { $_->{age} == 12 && $i++; }
PS: ah, you want to do it "without looping through each hash and counting." No, I don't think that's possible.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Find number of unique values in hash
by AnomalousMonk (Archbishop) on Jan 19, 2010 at 23:26 UTC |