Re: Is item in array

2006-12-31 Thread Randal L. Schwartz
> "Mathew" == Mathew Snyder <[EMAIL PROTECTED]> writes: Mathew> Is there an easy way to determine if an item is in an array without iterating Mathew> through the array and comparing each element to the item in question? It's a *really* good idea if you're subscribed to this list to type "per

Re: Is item in array

2006-12-31 Thread Mathew Snyder
Dr.Ruud wrote: > Ken Foskey schreef: >> Mathew Snyder: > >>> Is there an easy way to determine if an item is in an array without >>> iterating through the array and comparing each element to the item >>> in question? >> Look up grep. > > That still involves iterating and comparing each element, b

Re: Is item in array

2006-12-31 Thread Dr.Ruud
Ken Foskey schreef: > Mathew Snyder: >> Is there an easy way to determine if an item is in an array without >> iterating through the array and comparing each element to the item >> in question? > > Look up grep. That still involves iterating and comparing each element, but now done (faster) by gr

Re: Is item in array

2006-12-30 Thread Ken Foskey
On Sun, 2006-12-31 at 00:54 -0500, Mathew Snyder wrote: > Is there an easy way to determine if an item is in an array without iterating > through the array and comparing each element to the item in question? Look up grep. You might be wanting a hash table not an array. Ta Ken -- To unsubscrib

Is item in array

2006-12-30 Thread Mathew Snyder
Is there an easy way to determine if an item is in an array without iterating through the array and comparing each element to the item in question? Mathew -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/