my %seen; while (<>) { next if $seen{$_}; print; $seen{$_}++; } [download]
In reply to Re: to avoid redundacy in a file by amphiplex in thread to avoid redundacy in a file by Anonymous Monk