http://www.perlmonks.org?node_id=206574


in reply to Using OPEN to append to a file

It might be a good idea to close the LOG file before opening it with write access. Even if it doesn't solve your problem, at least it's cleaner.

Hope this helps, -gjb-