in reply to Re: Matching a KEY in a HASHin thread Matching a KEY in a HASH
The point of a hash is that a hash itself can find a value for a given key trivially.
$value_you_are_looking_for = $category{$variable}; [download]
-- Randal L. Schwartz, Perl hacker