in reply to How to find and remove duplicate elements from an array?

Try Array::Compare.

Originally posted as a Categorized Answer.