if (join '', @array1) eq (join '', @array2) { do_stuff; }
Not sure if this will work properly in all cases, but it should work for arrays containing strings. Really though, I can't think of any reason why it would work for numbers and such...
waiting to be proven wrong,
Mark
In reply to Re: All array elements the same?
by young perlhopper
in thread All array elements the same?
by Grumpy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |