my @array1 = (1,2,2); # 2 would be in the final array my @array2 = (1); my @array3 = (1);