more useful options | |
PerlMonks |
Merge huge files (individually sorted) by orderby tanger007 (Initiate) |
on Jul 18, 2013 at 23:55 UTC ( [id://1045229]=perlquestion: print w/replies, xml ) | Need Help?? |
tanger007 has asked for the wisdom of the Perl Monks concerning the following question:
Been trying to merge a bunch of sorted files with the same ordering. The number of files is random, so I chose to use an array of file handles. The plan is to have each file send in one line, then, the line with the highest rank will get pushed out, and then another line is yanked out of the file where that last line was from...
How does this work with perl? Been trying 3 hours with no success...
Back to
Seekers of Perl Wisdom
|
|