The '$h{$_}++ == 1' will never be true the first time $_ is seen, so anything that shows up only once in the array will be discarded by the grep.
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: Unique Array Items
by jasonk
in thread Unique Array Items
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |