Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Array searching, grep, firstby ChrisR (Hermit) |
on Sep 01, 2005 at 19:07 UTC ( [id://488464]=note: print w/replies, xml ) | Need Help?? |
You are quite right. grep will search through the entire list on every iteration. first is the way to go but your looping through the indexes is more self explanatory.
In Section
Seekers of Perl Wisdom
|
|