in reply to Remove Duplicates from an Array of Arrays
my %seen; for (0 .. $#AoA) { print "$AoA[$_][0] -> $AoA[$_][1]\n" unless $seen{$AoA[$_][0]}{$AoA[$_][1]}++; }
(although that doesn't remove the duplicates, it just stops you from printing them)
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|