in reply to get keys using values in hash.

You can do it somehow. If %rev = reverse %hash; than $rev{$value} gives a key. But it works not for all cases.

Note that keys are unique but values can be not unique. So if different keys have the same value how do you want to reverse them?