On Mon, 16 Jul 2001, System Administrator wrote:
> This is for newbies, right? Can anyone tell me why a s/^M//g won't get
> rid of the annoying ^M on the end of each line of an imported Paradox
> database?
I know you've had one solution to this problem already but as TMTOWTDI ...
^M is the carr
Are you transferring these files via ftp? If so it sounds like you are
using bin mode when you want ascii (ascii translates the line termination
chars for you).
Just 2 bits.
Peter C.
> This is for newbies, right? Can anyone tell me why a s/^M//g
> won't get rid of the annoying ^M on the end of
nstant help -
what a resource!
Franklin
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 11:12 AM
Subject: Re: Problems with ^M
> --Warning-- Answer coming from relative Newbie!
>
> I think you need to press CTRL V and
The bloody ^M character stems from a everybody having their own way of
terminating a line. In the days of the typewriter, you had to have a
new line and then a carriage return. Well, in winders that's still how
they do things. They end their lines with \n\r which is newline -
carriage return.
cc:
[EMAIL PROTECTED]
Subject: Re: Proble
--Warning-- Answer coming from relative Newbie!
I think you need to press CTRL V and then CTRL M to represent that
character. Caret-M doesn't work. I had this problem with some stuff on
FreeBSD and was pointed to the following link:
http://www.freebsddiary.org/control-m.php
Several solutions ar
On Mon, 16 Jul 2001, System Administrator wrote:
> This is for newbies, right? Can anyone tell me why a s/^M//g won't get
> rid of the annoying ^M on the end of each line of an imported Paradox
> database? Is there a better way? I know this has to be simple, yet I
> can find no reference in my pl
I believe chomp will take care of the line-ending code.
-Original Message-
From: System Administrator [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 1:49 PM
To: [EMAIL PROTECTED]
Subject: Problems with ^M
This is for newbies, right? Can anyone tell me why a s/^M//g won'
This is for newbies, right? Can anyone tell me why a s/^M//g won't get rid of the
annoying ^M on the end of each line of an imported Paradox database? Is there a better
way? I know this has to be simple, yet I can find no reference in my plethora of Perl
books.
TIA for any and all help - you gu