Rob Dixon wrote: > obdulio santana wrote: >> May be this helps >> >> perl -lne "print if ++$D{$_} == 1" address.txt > > You may prefer the cuteness of > > perl -lne "print unless $D{$_}++" address.txt
My apologies. That requires single quotes: perl -lne 'print unless $D{$_}++' address.txt to avoid perpetuating the earlier problem. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/