![]() |
|
more useful options | |
PerlMonks |
Re: Any downsides to this slurp idiom?by jbodoni (Monk) |
on Jun 24, 2018 at 14:35 UTC ( #1217321=note: print w/replies, xml ) | Need Help?? |
You're not being any more paranoid than me. :) I always fear that the file I'm reading (usually generated by another program written by someone else) will one day be larger than available memory. As a result I almost always process input files line by line. If I need to make a temporary buffer because I'm processing a chunk of data (defined by line count, byte count, start/end markers, whatever), I'm okay with that.
In Section
Seekers of Perl Wisdom
|
|