Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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??

in reply to Any downsides to this slurp idiom?

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1217321]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2023-03-26 23:51 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (63 votes). Check out past polls.