in reply to Re^3: null character problem
in thread null character problem

It seems I overcomed this problem by using:
binmode(LOGFILE);
Can someone explain why it worked ?