Problems? Is your data what you think it is? | |
PerlMonks |
Re: get the Difference between two arraysby Cristoforo (Curate) |
on Apr 02, 2018 at 18:33 UTC ( [id://1212192]=note: print w/replies, xml ) | Need Help?? |
Hi gabrielsousa,
List::Compare and Set::Scalar will do this. The method you want is get_symmetric_difference for List::Compare or symmetric_difference for Set::Scalar. And the faq that KurtZ referenced.
In Section
Seekers of Perl Wisdom
|
|