|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: compare arrays, and list the differenceby roboticus (Canon) |
| on Oct 03, 2012 at 11:08 UTC ( #997031=note: print w/ replies, xml ) | Need Help?? |
|
lza: You can't have looked very hard for the answer, as it's a commonly-asked question. Read perldoc perlfaq4. Update: I was probably expecting a bit much in thinking that beginning programmers would be able to adapt the code in perlfaq4 "How do I compute the difference of two arrays? How do I compute the intersection of two arrays". As pennance, here's a simple adaptation:
...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||