LINE: while (defined($_ = )) { print $_ unless $n{$_}++; }