foreach(@legit) { unless($b{$_}++) { push(@uniq,$_); } }
In reply to Re: How do I find if an array has duplicate elements, if so discard it?
by gba
in thread How do I find if an array has duplicate elements, if so discard it?
by toddprof
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |