Perl: the Markov chain saw | |
PerlMonks |
Re: Finding unique elements in an arrayby RazorbladeBidet (Friar) |
on Mar 15, 2005 at 13:14 UTC ( [id://439616]=note: print w/replies, xml ) | Need Help?? |
I think that is probably the clearest way to do it. Here's a way (which I'm not 100% works 100% of the time) that operates on the original list... but as you can see, it's nowhere near as clear:
I would stick with something similar to what you have above - it's easy to read, follow and maintain. Although I'm sure someone else can think of an uber-elegant solution :)
-------------- It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs
In Section
Seekers of Perl Wisdom
|
|