Loading ...
Sorry, an error occurred while loading the content.
 

Replace carriage control character

Expand Messages
  • Denny Malloy
    Hi, I have a small problem. I have a file that has carriage control characters in the middle of the record. I need to convert these to spaces. I used the
    Message 1 of 1 , Jan 5, 2001
      Hi,

      I have a small problem. I have a file that has carriage control characters
      in the middle of the record. I need to convert these to spaces. I used the
      following. It took out the charriage control but did not leave spaces. Any
      help will be appreciated. I am using an NT work station.

      ($sline = $line) =~ s/\r/ /g;

      Denny Malloy
      News Printing Company
      819 East Main Street
      Roaring Spring, PA 16673
      Phone: (814) 239-8787 ext. 2130
      Fax: (814) 224-2953
      denny.malloy@...
      www.npcweb.com
    Your message has been successfully submitted and would be delivered to recipients shortly.