[mplspm]: In a sorted list [better]

Jeff Gleixner qglex at yahoo.com
Fri Mar 22 14:59:34 CST 2002


> For
> the curious, my bigger problem was to take all the words in a
> 16 MB text
> file (there was one word on each line) and remove all of the
> duplicates. [...]


Unless you need to use Perl for some specific reason (an
assignment for class? :-), you could simply use Unix utilities
already written to do what you need.

% sort < file > uniq -o new_file

It won't get any faster than that.. :-)

See ya


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/


--------------------------------------------------
Minneapolis Perl Mongers mailing list

To unsubscribe, send mail to majordomo at pm.org
with "unsubscribe mpls" in the body of the message.



More information about the Mpls-pm mailing list