Any 'sort -mu' analog in Perl ? Need to remove duplicate lines.

I need to throw out identical lines from file.
In UNIX simple 'sort -mu' does the job, but I'm working
with Active Perl in Windows and have no UNIX ..
DOS 'sort' is too weak for it :((
Who is Participating?
jhurstConnect With a Mentor Commented:
I agree that DOS sort is too weak, msort is available as shareware at:
On the internet, MSORT is available from SimTel as the following:
where ??? is the version number.
 and it has the familiare unix stuff but it is for DOS/Windows.
perldoc -q "How can I extract just the unique elements of an array"
geniekAuthor Commented:
ERROR: The requested URL could not be retrieved
While trying to retrieve the URL: 
The following error was encountered:
ERROR 205 -- DNS name lookup failure.


Unknown host

Kim RyanIT ConsultantCommented:
Cygnus offer a complete port of Unix tools, (including sort) for Windows/DOS at:
geniekAuthor Commented:
Sounds great ! Thank you !
Downloading right now .. Tomorrow will take a look.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.