in reply to Unique items in a text file

perldoc -q duplicate

If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.