in reply to Re^2: why isn't split() working here?
in thread why isn't split() working here?

Perl does seamlessly convert \r\n to \n on Windows unless you binmode. It would be nice if there was a layer that handled common line endings seamlessly, but noone's gotten around to doing it. It's not that hard, even.

Replies are listed 'Best First'.
Re^4: why isn't split() working here?
by Anonymous Monk on Dec 09, 2010 at 07:11 UTC

      ::via is not relevant if the module is already written. It's also missing some key functionality relating to buffering, so I recommend writing layers in XS instead.

      Thanks for pointing out :eol, though. This had come up recently on p5p, and noone mentioned it was already written.

      It's quite unfortunate that it requires a different configuration for input handles than for output handles. It prevents its use as a default layer.