"Dr.Ruud" <[EMAIL PROTECTED]> wrote: beast schreef:
> a 100
> a 102
> c 100
> a 102
> b 111
> c 100
> c 102
> c 100
> c 100
> a 102
> ...
>
> I would like to have a list (either array or hash) with unique line .
perl -ne'$_{$_}||=print' datafile
or
perl -pe'$_ x=!$$_++' datafile
--
Affijn, Ruud
what are these exactly doing in plain english?
1st line is not printing and second it is, but gets confusing at ||= in the
1st line and at !$ in 2nd line.
thank you
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com