Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: If any element-in-array comparision

by repellent (Priest)
on Jan 29, 2012 at 22:39 UTC ( #950669=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # this always works
    print "@a\n" if defined(List::Util::first { defined($_) && 0 == $_ } @
    +a);
    
  2. or download this
    # doesn't work
    print "@a\n" if defined(List::Util::first { !defined($_) } @a);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2020-10-22 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (229 votes). Check out past polls.

    Notices?