Please see perlfaq4: "How can I tell whether a certain element is contained in a list or array?", and Getting Matching Items From An Array.
If that isn't what you intended, please clarify the question. Thanks.
Update: added a link to Limbic~Region's most excellent companion document to the FAQ.
In reply to Re: searching a list
by bobf
in thread searching a list
by keiusui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |