in reply to Re^2: Clear the contents of the text file
in thread Clear the contents of the text file

*cough* use autodie; open my($fh), '>', $file ;
  • Comment on Re^3: Clear the contents of the text file