good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: check if a value is in a given setby Anonymous Monk |
on Jul 24, 2012 at 15:33 UTC ( [id://983438]=note: print w/replies, xml ) | Need Help?? |
Smart-matching seems to work OK.
There are also hashes which might be a tad faster if your set is large.
In Section
Seekers of Perl Wisdom
|
|