Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Replace new line with white space

by Kenosis (Priest)
on Mar 09, 2014 at 20:31 UTC ( [id://1077618]=note: print w/replies, xml ) Need Help??


in reply to Replace new line with white space

Help me understand what you're asking. A newline (\n) is a species of whitespace. Do you mean replace each newline with a space character, i.e., " " (\x20)? If so, you can:

s/\n/ /g;

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1077618]
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: (7)
As of 2024-04-18 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found