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
In reply to Re: Remove Duplicates from an Array of Arrays
by davorg
in thread Remove Duplicates from an Array of Arrays
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |