sysopen(LOGFILE, $fullLogFile, O_RDWR | O_CREAT) or die "Cannot open '$fullLogFile' for writing: $!"; #### open(my $logfile, '+>', $fullLogFile) or die "Cannot open '$fullLogFile' for writing: $!";