Dears monks,
how do I empty the contents of a text file in perl,
I have to delete evrything from a file before updating it.
Thanks in advance.
Forgot to mention that I am oprning this file in append mode
open HANDLE,">>","/path/to/file" or die "Cannot overwrite file: $!";
Initially at open I need to delete all contents.