Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Replace new line with white space

by project129 (Beadle)
on Mar 10, 2014 at 04:21 UTC ( [id://1077648]=note: print w/replies, xml ) Need Help??


in reply to Replace new line with white space

Question can be not so simple as it look from the first sign.

As example not only different OS standards apply but also encoding question can be raised - please fix my comment if I am wrong but (Unicode Standard Annex #14 docs for Unicode 5.1.0) unicode realization try to fix OS new line problem making no differences between CR, LF && CR+LF chars but when see LF+CR (no CR in first place) - think that's 2 newline characters but ASCII interpreter it as one (historically as i understand).

p.s: please give us you input data example + perl code && environment localization information - so we can check at least you situation does not apply to something exotic like: "Tibetan Line Breaking" unicode new line finding algorithm.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-19 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found