in reply to Re: remove duplicate value in array
in thread remove duplicate value in array

And of course, the nice thing about this particular solution is you can still tell if there were any duplicate keys ... in such cases, the value of $seen{$key} will be greater than 1.


No good deed goes unpunished. -- (attributed to) Oscar Wilde