Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Design/Style question about writing to a file from different functions

by AndyZaft (Hermit)
on Jul 20, 2010 at 20:31 UTC ( [id://850516] : note . print w/replies, xml ) Need Help??


in reply to Re^2: Design/Style question about writing to a file from different functions
in thread Design/Style question about writing to a file from different functions

I would probably use temp files then append the rest to the file with the checksum once everything is done. That way it doesn't have to be stored in the memory while processing and let the OS do it which would most likely be the most efficient. But without specifics it is hard to tell, just poking in the dark here.