Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Array searching, grep, first

by ChrisR (Hermit)
on Sep 01, 2005 at 19:07 UTC ( [id://488464]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Array searching, grep, first
in thread Array searching, grep, first

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://488464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found