in reply to Remove Duplicates from an Array of Arrays

This looks like a "netstat" or NAT table.

If so, a simple hash may be a better structure to hold the information. You can transform the AOA into a hash while eliminating duplicates using this simple code:

my @AoA=([11,1],[22,2],[11,1],[44,4]); my %h; $h{$_->[0]} = $_->[1] for @AoA; print qq($_ -> $h{$_}\n) for sort keys %h --Output--- 11 -> 1 22 -> 2 44 -> 4

    Earth first! (We'll rob the other planets later)