in reply to Re^3: I'm trying to print the contents of a hash to newly created files
in thread I'm trying to print the contents of a hash to newly created files
can you explain to me the significance of '>>' as opposed to '>'?
See open (it's also explained in Opening Text Files for Writing):
If MODE is >, the file is opened for output, with existing files first being truncated ("clobbered") and nonexisting files newly created. If MODE is >>, the file is opened for appending, again being created if necessary.
|
---|