in reply to How to check if a variable's value is equal to a member of a list of values
Like so often: It depends.
How long are the keys and how much + do you have? I think that your hash approach is good as far as you have enough memory to store it. And the more you have to query the more it is profitable to build this hash initially.
McA
|
---|
In Section
Seekers of Perl Wisdom