No such thing as a small change | |
PerlMonks |
Re: Re: Re: parsing of large filesby Anonymous Monk |
on Mar 20, 2003 at 13:11 UTC ( [id://244579]=note: print w/replies, xml ) | Need Help?? |
First, thanks!
And: There is no "end-section". the end is the start of the next section and a "start-section" is one of 5-6 different tags that implemebt some kind of hierarchy between sections. I still can parse the big file into files but in any case I need to save a data struct with the files names, sections headers, etc. so it seems as a double wrok.
I finally solved it by Tie::File module, reading "line by line" from the tie array, and save for each section its name, its place at hierarchy and start and end index.
In Section
Seekers of Perl Wisdom
|
|