while (<>) { unless ($n{$_}++) { ... do something whith the line ... } } [download]
In reply to Re: Removing Duplicate Lines from a File by amphiplex in thread Removing Duplicate Lines from a File by johnirl