Re: sort an array unique.



Paul Lalli wrote:
On Jan 31, 9:23 am, "rajendra" <rajendra.pra...@xxxxxxxxxxxx> wrote:
Is there any command to sort an array uniquelly,something similar to
"sort -u" in unix.

Not built-in, but it's fairly easy to implement:

JFYI, it's also in List::MoreUtils as 'uniq'.

http://search.cpan.org/dist/List-MoreUtils/lib/List/MoreUtils.pm

--
# Robert 'phaylon' Sedlacek
# Perl 5/Catalyst Developer in Hamburg, Germany
{ EMail => ' rs@xxxxxx ', Web => ' http://474.at ' }
.



Relevant Pages