laziness, impatience, and hubris | |
PerlMonks |
Re2: remove duplicatesby blakem (Monsignor) |
on Oct 11, 2002 at 08:14 UTC ( [id://204444]=note: print w/replies, xml ) | Need Help?? |
If you're going to split and use a hash to check for uniqueness, its still possible to retain the original order (first occurances only, of course)
Though, this removes all the newlines as well.... -Blake
In Section
Seekers of Perl Wisdom
|
|