- or download this
## untested "idea" code ##
package TwoWayHash;
...
my $temp = reverse $self->{data};
return $temp{shift};
}
- or download this
use TwoWayHash;
...
my $b = TwoWayHash->(\%a);
print "I need ",$$b{'item'}; ## finds key where $a{key} eq 'item'
}
- or download this
print "I need", rv_lookup('item',\%a);