[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] perl to c/c+/




>First, from the camel book there is the classic one line which
>creates an array and removes all unique entries.
>
>   while (<>) { $seen{$_}++; }  # only see what is not seen
>
>This is blazingly fast.
>


Does it remove all unique entries, or ensure that entries in the $seen{}
array are unique?  ie, does it uniq -d or uniq -u????

Thanks




**
Hate is NOT a "Family Value"!
professional site:  http://www.jann.com/
personal site:       http://www.jann.com/jann/
email:                  mailto:webmaster@jann.com
**



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch