go ahead... be a heretic | |
PerlMonks |
Most elegant way to dispose of duplicates using mapby rashley (Scribe) |
on Oct 30, 2006 at 16:07 UTC ( [id://581321]=perlquestion: print w/replies, xml ) | Need Help?? |
rashley has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks!
I have this sub, that takes a cgi param and splits it up into a list of hashes: What I need to do is get rid of the duplicates bassed on "id", or better yet, prevent them from getting in my list to begin with. I'm sure I could slug through this, but everything I've come up with is very clunky, and I'm sure there is a more "monkish" way to do it. Thoughts? Thanks!
Back to
Seekers of Perl Wisdom
|
|