in reply to How to find the repeated text in hash

This sounds like an XY Problem. What are you trying to accomplish? What did you try that didn't work? Can you perhaps give us a sample data structure? An example is worth 1000 words. See How do I post a question effectively?.

My reading of your post says you are looking for a one-to-many mapping in a hash. This is usually done with an array ref: perlreftut, perllol. Perhaps stored with:

push @{$hash{$key}}, $value;

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.