Assuming you want to retain a spanning set (which the golf seems to have gotten away from...)
will give you one of each IP address in the list.@filtered = grep {!$seen{$_}++} @original; #somewhat tested code
And it golfs pretty well, too...
In reply to Re: Removing Duplicates in an array?
by ChemBoy
in thread Removing Duplicates in an array?
by pharaoh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |