in reply to getting hash key with value

Given the constraint that the values are distinct, just make a reverse mapping and use that. my %vals_to_keys; @vals_to_keys{ values %src } = keys %src;

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: getting hash key with value
by sovixi (Novice) on Apr 16, 2008 at 00:25 UTC
    Thanks a lot!!!