There's more than one way to do things | |
PerlMonks |
Re^3: Removal of duplicated element in array.by 2teez (Vicar) |
on May 06, 2013 at 14:15 UTC ( [id://1032304]=note: print w/replies, xml ) | Need Help?? |
*UPDATE: If you care about the order of display then you can use this: print join "\n", sort{$a cmp $b} keys %seen;
*Note: That was based on the assumption, that the original ORDER of data was inconsequential.
If you tell me, I'll forget. If you show me, I'll remember. if you involve me, I'll understand. --- Author unknown to me
In Section
Seekers of Perl Wisdom
|
|