Fletch and Nevtlathiel have it above. Just in case the code sample is too dense, here's a little "looser" version that does the same thing:
So %seen is the hash that gets a key for each unique value in @content, and @unique is an array containing those (unique) keys.my %seen; $seen{$_}++ for @content; my @unique = keys %seen;
In reply to Re: remove duplicate value in array
by VSarkiss
in thread remove duplicate value in array
by sivaramanm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |