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

if ( @list == grep { $_ == $list[0] } @list ) { &do_something; }
... seems clearer to me. But then again, that's just me ;)

ar0n ]

Replies are listed 'Best First'.
Re: (ar0n) Re (2): Fastest way to compare multiple variables?
by MeowChow (Vicar) on May 15, 2001 at 23:03 UTC
    if ( !grep $_ != $list[0], @list ) { &do_something; }
    ... probably clearer, definitely probably faster :)
       MeowChow                                   
                   s aamecha.s a..a\u$&owag.print