Thanks, antirice. But I always thought it wasn't good practice to use grep for such purposes. From perlfaq4, How can I tell whether a certain element is contained in a list or array?:
Please do not use ($is_there) = grep $_ eq $whatever, @array;Am I missing something?
Thanks again
daveIn reply to Re: Re: Is X in my array?
by Not_a_Number
in thread Is X in my array?
by Not_a_Number
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |