http://www.perlmonks.org?node_id=1077621


in reply to Re^2: Replace new line with white space
in thread Replace new line with white space

Show what you've tried. It may also help to mention the OS where the text was created, since you may need to s/\r\n/ /g.

Replies are listed 'Best First'.
Re^4: Replace new line with white space
by fattahsafa (Sexton) on Mar 09, 2014 at 20:58 UTC
    I'm working on windows

      That's only answering half of what kenosis asked. What have you tried?

      It seems like such a simple problem that if your solution didn't work, we need to see it so that we can understand what you're doing wrong. Until then, s/\n/ / is a perfectly reasonable answer. If that answer doesn't suit you, we need to know why. "It didn't work." isn't a good enough reason. We need to know how it was incorporated into your solution, and how failure manifested itself.


      Dave