Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 romping around the Monastery: (13)
As of 2015-01-30 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (254 votes), past polls