in reply to Removing Duplicates in an array?
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...
|
|---|