I have an array with... lets say 100 elements. I want to check to see if any of the elements matches a particular string. For example:
@array = ('red','white','blue');
I also want to know if the array contains the string 'white' as one of the elements. I know how to do this with a foreach loop and comparing each element, but... is there an easier (faster) way than looping through the whole array?
-Thanks