http://www.perlmonks.org?node_id=643087


in reply to Using unix commands in perl?

You could also have used List::MoreUtils' uniq function.