in reply to Is X in my array?
If your target array is only going to contain single-character strings, then no. But if the strings get larger, you risk matching "food" when you're seeking "foo". And if the strings ever contain spaces, you risk more false positives.
Better, I think, to use grep.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Is X in my array?
by Not_a_Number (Prior) on Jun 17, 2003 at 18:33 UTC |