$same = not grep { $_ ne $array[0] } @array; [download]
In reply to Re: All array elements the same? by chip in thread All array elements the same? by Grumpy