in reply to Removing duplicate hashrefs from an array
Either follow Choroba's suggestion to check the uniqueness of the hash values or try a %seen hash with concanated keys.
Ie checking $seen{join $; , values %$href }++
(see $; in perlvar for details)
(see http://perldoc.perl.org/perlfaq4.html#How-can-I-remove-duplicate-elements-from-a-list-or-array%3f too)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Removing duplicate hashrefs from an array
by msomanat (Initiate) on Oct 06, 2014 at 05:54 UTC | |
by LanX (Saint) on Oct 06, 2014 at 10:42 UTC |