Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: why isn't split() working here?

by ikegami (Patriarch)
on Dec 09, 2010 at 04:35 UTC ( [id://876162]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://876162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found