Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Compare all array values without a loop

by rjbs (Pilgrim)
on Oct 19, 2004 at 14:22 UTC ( [id://400537]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (grep({ $_ eq $foobar } @array) == @array) { ... }
    
  2. or download this
    unless (grep { $_ ne $foobar} @array) { ... }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-19 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found