Possible Duplicate:
Comparing two arrays & get the values which are not common
I wanted a logic to get uncommon items from an array, for example:
$a=@(1,2,3,4,5,6)
$b=@(1,2,3,4,5,7,9,10)
I want the output $c
to be 6 which is the missing element in $b
array, priority should be only given to the array contents of $a
.
Can anyone please help me out with this?
Thanks!