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

  • Re: Position in an array
    ... Robert 'phaylon' Sedlacek a écrit: ... can I get rid of $count in some way (by using an implicit ...
    (comp.lang.perl.misc)
  • Re: Position in an array
    ... Robert 'phaylon' Sedlacek wrote: ... # Perl 5/Catalyst Developer in Hamburg, Germany ...
    (comp.lang.perl.misc)
  • Re: sort an array unique.
    ... # Robert 'phaylon' Sedlacek ... # Perl 5/Catalyst Developer in Hamburg, ...
    (comp.lang.perl.misc)
  • Re: Objektmethoden auflisten/Frage zu SUPER
    ... # Robert 'phaylon' Sedlacek ... # Perl 5/Catalyst Developer in Hamburg, ...
    (de.comp.lang.perl.misc)
  • Re: Farewell to .NET
    ... Im Coffehouse auf news.dotnetpro.de gibt's ein ausführliches Statement von ... Ralf Westphal. ... JFYI, Robert ...
    (microsoft.public.de.german.entwickler.dotnet.framework)