use strict; use warnings; my @array1 = (1,2,3,4,5,6,7,8,9,10); my @array2 = (10,9,8,7,6,5,4,3); die "Nope not all there\n" if ( any(@array2) != all(@array1) ); print "found all of them\n";