binmode löscht die bisherigen IO Layer. Das ist in PerlIO dokumentiert.
Quote
The binmode function can be called on an opened handle to push additional layers onto the stack, which may also modify the existing layers. binmode called with no layers will remove or unset any existing layers which transform the byte stream, making the handle suitable for binary data.