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


in reply to Win32: Setting a layer with binmode causes problem with close() on Windows

Does a simple binmode($fh); fail to do the right thing ?

Cheers,
Rob