in reply to 'sort -u' in perl

Call sort -u. There are plenty of Win32 ports of Unix utilities. I like UnxUtils.

Update: Alternatively, I'd use a database, maybe either DB_File or DBI/DBD::SQLite. But sort -u is probably the simplest solution.

Another update: I now like MSYS for my Unix utilities