open( LOG, "") or die "cannot open the log: $!"; while( ) { ...