It will help if undef isn't an acceptable value, which is a common scenario.
I should have qualified my answer, but I thought the OP said they were storing numbers. Those are the keys, though. woops.
In reply to Re^3: Using exists to check element in array
by ikegami
in thread Using exists to check element in array
by david
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |