Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Compare all array values without a loopby edan (Curate) |
on Oct 19, 2004 at 14:19 UTC ( [id://400535]=note: print w/replies, xml ) | Need Help?? |
Update: Use the above code if you really want to compare all array values (which is what you said). If you really want to just know if the value is in the array (and then stop searching), you might try the following, which might perform better in certain situations:
In Section
Seekers of Perl Wisdom
|
|