in reply to
(zdog) Re: Finding Redundant values in arrays
in thread Finding Redundant values in arrays
This won't work. The for (@test) line iterates
through each element of @test, but then you
skip each element with the grep you're using.
In English you're saying: for each element in the array,
only keep that element if it is not in the array.
Also, there is no need to place quotes round $_.
Update: This is wrong. dvergin explains
what really happens in Re: (zdog) Re: Finding Redundant values in arrays.