Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Fastest way to compare multiple variables?

by owendelong (Initiate)
on Feb 27, 2013 at 00:27 UTC ( #1020782=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Fastest way to compare multiple variables?
in thread Fastest way to compare multiple variables?

The problem with that is that the code will produce an incorrect result in the case:

my @list={"a","aaaa","aa","aaaaaaaa","a"};

In the above (admittedly pathological) case, it would report all equal when this is not true.


Comment on Re^3: Fastest way to compare multiple variables?
Download Code
Re^4: Fastest way to compare multiple variables?
by topher (Scribe) on Feb 27, 2013 at 00:58 UTC

    A comment correcting a code snippet that was posted 12 years ago.

    I love Perlmonks. ;-)

    Christopher Cashell

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-10-23 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (122 votes), past polls