Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 imbibing at the Monastery: (3)
As of 2016-07-30 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (264 votes). Check out past polls.