open (LOGFILE, "< $logfile") or die ("Could not open $logfile: $!");