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