Read perlfunc's section on open.
In reply to Re: append by Mr. Muskrat in thread append text to existing file by Anonymous Monk