in reply to
All array elements the same?
Easiest, and cheaper than the hash solution:
$same = not grep { $_ ne $array[0] } @array;
[download]
-- Chip Salzenberg, Free-Floating Agent of Chaos
Comment on
Re: All array elements the same?
Download
Code
In Section
Seekers of Perl Wisdom