title: Is it better to write to file in small chunks or everything at once?
body: <p>I have to write multiple lines on a file with Perl, which are the pros or the cons of writing in small chunks line by line versus saving everything up and accessing the filehandle only once to write everything?</p>