|laziness, impatience, and hubris|
Efficient Comparison of Array elementsby aging acolyte (Pilgrim)
|on Jan 08, 2003 at 15:42 UTC||Need Help??|
aging acolyte has asked for the
wisdom of the Perl Monks concerning the following question:
In my journey to enlightenment I am looking for efficiency.
My problem is I have two arrays and I want to compare them and list those elements that are common to both and those that are unique.
Now I am sure that this is a common problem and I know that a set of nested for loops would work - comparing each element in turn. But there must be a better way. Is it time for my understanding of map to grow beyond the "little black book" description?