Syntactic Confectionery Delight | |
PerlMonks |
Re: Processing large filesby derby (Abbot) |
on Aug 21, 2013 at 11:32 UTC ( [id://1050330]=note: print w/replies, xml ) | Need Help?? |
Others have pointed out the real problem with your code but I would like to point out that with most IO architectures, you're probably not going to gain much performance by buffering your input this way -- the underlying library calls for read are probably already buffering. You may want to Benchmark your buffering approach with a standard line-by-line approach. If the differences are minimal, I would opt for the simpler code.
-derby
In Section
Seekers of Perl Wisdom
|
|