Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: The fastest way of searching a certain element in an array

by blakem (Monsignor)
on Apr 14, 2004 at 23:49 UTC ( #345252=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    % perldoc List::Util
    
    ...
                   $foo = first { defined($_) } @list    # first defined v
    +alue in @list
                   $foo = first { $_ > $value } @list    # first value in 
    +@list which
                                                         # is greater than
    + $value
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-07-31 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (253 votes), past polls