in reply to removing duplicates from an array of hashes
Using an anonymous hash, not maintaining the original order:
@$ref = values %{{ map { $_->{'id'} => $_ } @$ref }};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: removing duplicates from an array of hashes
by Anonymous Monk on Apr 17, 2014 at 13:23 UTC |