Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by MeowChow (Vicar)
on May 15, 2001 at 23:03 UTC ( #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


Comment on Re: (ar0n) Re (2): Fastest way to compare multiple variables?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (16)
As of 2014-07-11 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (227 votes), past polls