BTW more infos on the file opening modes can be found in perlopentut
In reply to Re: overwriting a file by moritz in thread overwriting a file by Anonymous Monk