The stupid question is the question not asked | |
PerlMonks |
Unique uniq implemenationby feloniousMonk (Pilgrim) |
on Mar 06, 2002 at 20:56 UTC ( [id://149842]=perlquestion: print w/replies, xml ) | Need Help?? |
feloniousMonk has asked for the wisdom of the Perl Monks concerning the following question:
Hi I'm trying to write something to perform a uniq on a large input file. Not too big, less than 10 meg I would imagine. Here's the kicker - the lines look like this: NUMBER FIELD(s) I need to uniq based on FIELD(s). Sorting by NUMBER is secondary, not absolutely necessary. NUMBER and FIELD(s) are separated by a single space in all cases so a split is easy. My first reaction was to use a hash but it's memory consumption would be way too much. Thanks, felonious --
Back to
Seekers of Perl Wisdom
|
|