Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: (ar0n) Re (2): Fastest way to compare multiple variables?

by MeowChow (Vicar)
on May 15, 2001 at 23:03 UTC ( [id://80674]=note: print w/replies, xml ) Need Help??


in reply to (ar0n) Re (2): Fastest way to compare multiple variables?
in thread Fastest way to compare multiple variables?

if ( !grep $_ != $list[0], @list ) { &do_something; }
... probably clearer, definitely probably faster :)
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found