http://www.perlmonks.org?node_id=1082624


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
    You perlmonks are seriously amazing! Can't thank you enough!