Tech Tip: Opening a file for read/write without clobbering it.
perlopentut
gives several
options for opening a file for read and write, and I opted to use
'+>'
for
Maniac
Downloader, but as it turned out, it caused the existing file to be
clobbered (= its length to be set to zero and all of its contents deleted).
After asking on Freenode's #perl channel, we reached this solution …