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.
In reply to Re: Find number of unique values in hash
by zwon
in thread Find number of unique values in hash
by rethaew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |