sub check_uniform { my @array = @_; my $first = $array[0]; for(@array) { return 0 unless $_ eq $first; } return 1; }
In reply to Re: Testing the Uniformity of an Array by its Elements
by friedo
in thread Testing the Uniformity of an Array by its Elements
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |