in reply to Re: Using ":raw" layer in open() vs. calling binmode()
in thread Using ":raw" layer in open() vs. calling binmode()

Thanks for testing !

Yes, if you explicitly specify the :perlio (or on MacOS maybe better :stdio) layer the stream will be buffered. What I don't understand (yet ?) is why a simple :raw removes all layers, including the existing :perlio (or in your case :stdio) layer.

But I have the feeling, that that behaviour may be intentional and that only the documentation is a bit misleading here.

  • Comment on Re^2: Using ":raw" layer in open() vs. calling binmode()