in reply to how to sort uniq $array[2]

See perlop on qx or "backticks". Also see perlfaq4 on how to sort an array (by anything) and how to remove duplicates from a list.

Replies are listed 'Best First'.
Re^2: how to sort uniq $array[2]
by auto_w (Novice) on Jun 06, 2011 at 13:04 UTC

    Thanks Corion -but i already did,that is why i'm here solution

    my @sorted = map { $_->[0] } sort { $a->[1] cmp $b->[1] } map { [ $_, uc( (/\d+\s*(\S+)/)[0]) ] } @sort;
    not working for me

      You didn't post this code when you asked your question.

      Please tell us how the code you have now fails to work for you, and what output you expect instead.

      I don't see, for example, where your current code would remove duplicates.