--- "M.W. Koskamp" <[EMAIL PROTECTED]> wrote:
> > : open FH, "lines.txt" || die $!;
> > : my %uniq;
> > : map{$uniq{$_}=1 and print $_ unless $uniq{$_} }<FH>;
lol -- one better(ish....):
print map { $uniq{$_} ? '' : $uniq{$_}=$_ } <FH>; #:op
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
- eliminating duplicate lines in a file cherukuwada subrahmanyam
- Re: eliminating duplicate lines in a file Greg Meckes
- Re: eliminating duplicate lines in a file Sean O'Leary
- Re: eliminating duplicate lines in a file Paul
- Re: eliminating duplicate lines in a fil... M.W. Koskamp
- Re: eliminating duplicate lines in a... Casey West
- Re: eliminating duplicate lines ... M.W. Koskamp
- Re: eliminating duplicate l... Paul
- Re: eliminating duplica... Casey West
- Re: eliminating duplicate lines in a file Timothy Kimball
- Re: eliminating duplicate lines in a file cherukuwada subrahmanyam
