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

If you open it with :crlf (which is the default on MSWin)

If you're running perl "on Cygwin on MSWin" it looks to me that :crlf is not the default.
I therefore deduce that you regard running perl "on Cygwin on MSWin" as not running perl "on MSWin".

(Just trying to clear up exactly what it means to be "on MSWin".)

Cheers,
Rob

Replies are listed 'Best First'.
Re^3: AnyEvent::Socket -> Hosts File -> CR/LF Issue on windows?
by choroba (Cardinal) on Feb 08, 2022 at 11:01 UTC
    Yeah, by "running perl on MSWin" I mean
    $^O eq 'MSWin32'
    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
      > $^O eq 'MSWin32'

      which is IMHO the central point when talking about newline problems in hybrid situations like WSL or Cygwin

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        WSL isn't an unix emulation layer for Windows like Cygwin; it's a VM that let's you run a real Linux install, with its own file system and all. It's 100% not Windows. In comparison, you have access to Windows system calls in Cygwin, and you still use the same file system.