more useful options | |
PerlMonks |
Re: Unique Array Itemsby matthewb (Curate) |
on Nov 07, 2003 at 10:25 UTC ( [id://305264]=note: print w/replies, xml ) | Need Help?? |
It might be worth pointing out Array::Unique on CPAN which, if you want an array of unique values, transparently handles it for you. Granted, you still have to sort the array but your problem has been reduced to a ten-second job with reusable components, which is often a good thing. MB
In Section
Seekers of Perl Wisdom
|
|