in reply to Iterating over hash contents?

my $matches = grep { $variable eq $_ } values %hash; That has $matches assigned to the number of hash values which match. String equality is tested; use '==' if you want a numeric match.

After Compline,
Zaxo