![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: Difference between two arrays - is there a better way?by SimonSaysCake (Beadle) |
on Dec 04, 2014 at 16:57 UTC ( #1109262=note: print w/replies, xml ) | Need Help?? |
This one-liner (versus answers with hashes and inspired by another answer) is working for me but has not been very rigorously tested (as run on AS Perl 5.16.3):
Switch the lists around in the nested greps to go from being "in foo but not also bar" to "in bar but not also foo". -Simon
In Section
Seekers of Perl Wisdom
|
|