Help for this page
my %seen; while (<>) ... next if ($seen{$_}++); print; }
my $last; while (<>) ... $last = $_; print; }