my %results; @goodstuff = (1,2,3,4,5); @badstuff = (1,3); for (@goodstuff) { $results{$_}++ } for (@badstuff} { $results{$_}++ } for (keys %results) { if ($results{$_} == 1) { print "Value: " . $_ . " was found in only one array\n"; } }
I think that is right, I just coded it off the top of my head so no promises...
In reply to Re: Subtracting Lists
by Herkum
in thread Subtracting Lists
by JimSki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |