laziness, impatience, and hubris | |
PerlMonks |
Re: How to get rid of dupes from an array of hashesby injunjoel (Priest) |
on Jun 30, 2005 at 23:45 UTC ( [id://471515]=note: print w/replies, xml ) | Need Help?? |
Greetings all, This works for a small array. Im not sure how well it will scale for 4000 elements, hopefully you have enough memory for it. output
This code assumes that the hashes have the same keys just different values. If this is not the case change the line to
-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo
In Section
Seekers of Perl Wisdom
|
|