in reply to Use a perl script to empty a file and then replace it with data from a web form
Hi, Perl comes with built-in safety features. Always, always:
open (my $FILEHANDLE, '>>', $file) or die "Died: cannot open $fi +le: $!"; [download]