Use a hash and build keys from the whole entry:
my %res; for my $entry (@$data) { $res{join "|", sort %{$entry}} = $entry; } @$data = values %res; print Dumper $data;
UPDATE: Added a "sort" to become independent from order within the hash.
In reply to Re: Get just the unique value
by hdb
in thread Get just the unique value
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |