Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
parsing of large filesby Anonymous Monk |
on Mar 19, 2003 at 17:21 UTC ( [id://244391]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi All. I have a perl performance problem: I need to cut huge files (up to 100MB, about 2 million lines. average size is about 600k lines ) into sections. A special tag appears at start and end of each section, while the section's size is , of course, unknown.
One option is to read the file, line-by-line, finding the start and end of each section (using regex, save states and so on...).
Do you familiar with perl module that handles large files , or have any other idea ?
Back to
Seekers of Perl Wisdom
|
|