in reply to All array elements the same?

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,