The FAQ How can I remove duplicate elements from a list or array? can be adapted for use here.
my %seen; @partTuples = grep { ! $seen{$_->{id}}++ } @partTuples;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Most elegant way to dispose of duplicates using map
by davorg
in thread Most elegant way to dispose of duplicates using map
by rashley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |