in reply to Comparing against multiple values
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Comparing against multiple values
by Anonymous Monk on Feb 09, 2018 at 16:03 UTC |