|No such thing as a small change|
Re: How to check if a variable's value is equal to a member of a list of valuesby LanX (Canon)
|on Mar 25, 2013 at 14:09 UTC||Need Help??|
could you please elaborate more, I don't really understand your usage of values and keys.
lookups of strings (!) are most efficient with hashes, ...
> then just using something like 1 for the value.
... and you don't need to assign any value, undef is enough
You're free to put anything other than undef in the slots if you need to do further checks.
Someone proposed using smartmatch ~~, but I doubt this scales well in repeated use (if their is no magic background optimization happening)
( addicted to the Perl Programming Language)