in reply to Re: Is X in my array?
in thread Is X in my array?
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
dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Is X in my array?
by antirice (Priest) on Jun 17, 2003 at 19:22 UTC |