Just another Perl shrine | |
PerlMonks |
Re: How I learned to stop worrying and love the hash slice. (boo)by PrakashK (Pilgrim) |
on Jul 25, 2001 at 22:59 UTC ( [id://99774]=note: print w/replies, xml ) | Need Help?? |
I frequently use hash slices to eliminate duplicates from an array.
A simplified example: Of course, this does not preserve the order of the elements as they were in original array @a.
In Section
Seekers of Perl Wisdom
|
|