in reply to AnyEvent::Socket -> Hosts File -> CR/LF Issue on windows?

On Windows, Perl automatically converts CRLF to LF on read, and LF to CRLF on write (by default).

But you might be using a perl built as part of unix emulation environment like Cygwin and I think MSYS/MSYS2. Such a Perl wouldn't perform such translations, even though it could be launched from a Windows program (e.g. the Windows shell).

Possible solutions: