Problems? Is your data what you think it is? | |
PerlMonks |
Re: Answer: How can I find the union/difference/intersection of two arrays?by Anonymous Monk |
on Nov 16, 2017 at 16:10 UTC ( [id://1203605]=note: print w/replies, xml ) | Need Help?? |
the problem with that method is that your @isect can contain identical elements for example,if @a=(1,2,3,4,2) and @b=(1,2,4), your @isect will be: (1,2,2,4) before using this method you have to make sure each element is unique in both tab
In Section
Seekers of Perl Wisdom
|
|