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
i want to compare the 2 arrays without using hashes at one shot. desired output : Compare(@arr1,@arr2) = not matching. Compare(@arr1,@arr3) = matching@arr1 = ("book","pen","pencil"); @arr2 = ("pen","pencil",book",eraser"); @arr3 = ("pen","pencil","book");
Back to
Seekers of Perl Wisdom