perl - How to remove the carriage return and replace it with a space in a text file? -
I'm reading from a text file so that's what I want to: To get that car back, Add location.
I tried to do this but I am getting an error
$ text = ~ s / \ n + / \ s / g; The correct side of the replacement is a string, not a regex, then you have to put it. A lexical place instead of \ s
: $ text = ~ s / \ n + / / g;
Comments
Post a Comment