It would be interesting to compare these various solutions for large and small numbers of comparison sets.use Meta::Ds::Hash; my($hash)=Meta::Ds::Hash->new(); $hash->insert($bar); $hash->insert($baz); $hash->insert($boo); # later if($hash->has($foo)) { print "Found it\n"; }
HTH, --traveler
In reply to Re: Comparing against multiple values
by traveler
in thread Comparing against multiple values
by doran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |