{ my %hash; @hash{@array} = (); $same = (1 == keys %hash); } [download]
In reply to Re: All array elements the same? by japhy in thread All array elements the same? by Grumpy