in reply to Re: Checking if all the key values are same in an Array
in thread Checking if all the key values are same in an Array

grep is a loop. And I strongly assume (without looking at the code) that List::Util uses a loop internally too.


holli, /regexed monk/

Replies are listed 'Best First'.
Re^3: Checking if all the key values are same in an Array
by ysth (Canon) on Apr 28, 2005 at 06:06 UTC
    Let's not be too pedantic. Unless there's some kind of obfuscation/puzzle involved, usually when people say things about not wanting a loop, they usually mean they don't want to break up their code by a loop statement. I think grep in an expression is highly likely to be the desired answer.