|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: GUI issueby moritz (Cardinal) |
| on Oct 18, 2011 at 12:24 UTC ( #932122=note: print w/ replies, xml ) | Need Help?? |
|
You don't need a loop to do a hash lookup.
Is faster, less code and harder to screw up. Update: reading the code twice, it appears you are searching for a value, not for a key. If that's the case, the proper solution is to construct the hash the other way round, so that the common lookup is by key, not by value.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||