open FILE,">>filename"; truncate FILE, 0; close FILE [download]
In reply to Re: Clearing out the file by madtoperl in thread Clearing out the file by Anonymous Monk