Limo has asked for the wisdom of the Perl Monks concerning the following question:

I have a hash that contains multiple keys with the same value:
my %hash = (cat => animal, (dog => animal, (bird => animal, (rose => flower, (tulip => flower)
I need to print a summary, based upon key value:
animal: ========= cat dog bird flower ====== rose tulip
How would I go about doing this?

Replies are listed 'Best First'.
Re: How to match hash values
by merlyn (Sage) on Oct 09, 2000 at 20:56 UTC