in reply to Re^2: how to sort uniq $array[2]
in thread how to sort uniq $array[2]

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.