|
|
| more useful options | |
| PerlMonks |
Re: Going through a big fileby RMGir (Parson) |
| on Jan 17, 2013 at 13:03 UTC ( #1013771=note: print w/ replies, xml ) | Need Help?? |
|
Aside from the excellent advice above about using while rather than for, you may also want to consider looking at the File::SortedSeek module. It's not directly applicable to what you're doing, but you could use it for inspiration - if your XML is in any kind of sorted order, you can save ENORMOUS amounts of time by doing binary searches if you only need to process a small subset of the file. Mike
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||