http://qs1969.pair.com?node_id=469324

Madam has asked for the wisdom of the Perl Monks concerning the following question:

how to compare 2 arrays at one shot? For e.g, i have arrays
@arr1 = ("book","pen","pencil"); @arr2 = ("pen","pencil",book",eraser"); @arr3 = ("pen","pencil","book");
i want to compare the 2 arrays without using hashes at one shot. desired output : Compare(@arr1,@arr2) = not matching. Compare(@arr1,@arr3) = matching