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

Re^2: Compare all array values without a loop

by ihb (Deacon)
on Oct 20, 2004 at 00:21 UTC ( [id://400714]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        defined(
            defined $foobar
            ? first { $_ eq $foobar } @array
            : first { not defined $array[$_] } 0 .. $#array
        )
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-16 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found