|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Answer: How can I display a unique array if it contains some repeated elementsby knobunc (Pilgrim) |
| on Apr 30, 2001 at 14:02 UTC ( [id://76586]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
This is fine for some cases, but it does not preserve the ordering of the elements in the array. The origial poster did not indicate if they cared. Anyway, as IO pointed out, the node How can I extract just the unique elements of an array? discusses several methods for dealing with this depending upon the data that you are dealing with. -ben
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||