Using an anonymous hash, not maintaining the original order:
@$ref = values %{{ map { $_->{'id'} => $_ } @$ref }};
In reply to Re: removing duplicates from an array of hashes
by hdb
in thread removing duplicates from an array of hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |