in reply to Finding a hash key from the value (reverse lookup)
#!/usr/bin/perl -w use strict; my %fruit = ( apple => 'green', orange => 'orange', banana => 'yellow' ); print ${{reverse %fruit}}{'yellow'};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Finding a hash key from the value (reverse lookup)
by PsychoSpunk (Hermit) on Jan 22, 2001 at 23:34 UTC | |
by Anonymous Monk on Jan 23, 2001 at 02:23 UTC | |
by PsychoSpunk (Hermit) on Jan 23, 2001 at 04:24 UTC |