my $filename = 'LOG_file'; open(my $LOG, '>>', $filename) or die("ERROR: Cannot open file '$filename' for appending: $!");