We don't bite newbies here... much | |
PerlMonks |
Re: Merging Many Files Side by Sideby atemon (Chaplain) |
on Feb 19, 2009 at 20:36 UTC ( [id://745188]=note: print w/replies, xml ) | Need Help?? |
Hi, Try CPAN module Tie::File Tie::File represents a regular text file as a Perl array. Each element in the array corresponds to a record in the file. The first line of the file is element 0 of the array; the second line is element 1, and so on. Important fact is, file is never loaded into memory. You can tie all your files including 'result file' and write to 'result file' without loading neither of them to memory. Writing to new file would be just a push to array tied to result file. Hope this helps. Cheers ! --VC
In Section
Seekers of Perl Wisdom
|
|