Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Most efficient way of search elements in an array

by whakka (Hermit)
on Sep 15, 2009 at 14:58 UTC ( #795404=note: print w/ replies, xml ) Need Help??


in reply to Most efficient way of search elements in an array

use Test::More tests => 2; my @not_ok = (1,1,1,0,1); my @ok = (1,1,1,1,1,1); ok( not (grep { $_ == 0 } @$_), 'No zeros' ) for ( \@not_ok, \@ok );


Comment on Re: Most efficient way of search elements in an array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2014-07-28 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (196 votes), past polls