open my $LOGFILE, '<', $log_file or die "can not open $log_file for writing: $!\n";