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...)

@filtered = grep {!$seen{$_}++} @original; #somewhat tested code
will give you one of each IP address in the list.

And it golfs pretty well, too...



If God had meant us to fly, he would *never* have give us the railroads.
    --Michael Flanders