or download this
Found in /usr/share/perl/5.6.1/pod/perlfaq4.pod
How do I compute the difference of two arrays? How do I
...
Note that this is the symmetric difference, that
is, all elements in either A or in B but not in
both. Think of it as an xor operation.