Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 meditating upon the Monastery: (9)
As of 2016-06-30 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (393 votes). Check out past polls.