in reply to Re: Is there a way to open a memory file with binmode :raw?
in thread Is there a way to open a memory file with binmode :raw?

Thanks choroba.

Yes, I'm on MSWin for this test, and I want both CRLF to be written to the file, and then displayed after the fact. This does as expected with the actual file, but not the scalar ref memory pseudo file.

  • Comment on Re^2: Is there a way to open a memory file with binmode :raw?

Replies are listed 'Best First'.
Re^3: Is there a way to open a memory file with binmode :raw?
by choroba (Cardinal) on Oct 09, 2015 at 21:07 UTC
    Sorry, I'm on Linux now. So do it the other way round: when printing to the scalar ref, set the binmode to :crlf.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      That definitely works, but why isn't it doing that by default while on a win32 system?

        That definitely works, but why isn't it doing that by default while on a win32 system?

        Because that isn't the default, as documented