See Re^4: Common Perl Idioms for a %ismember() equivalent. See also List::MoreUtils.
In reply to Re: Returning position? by BrowserUk in thread Returning position? by theoya