Re: Problems with ^M

2001-07-17 Thread Rachel Coleman
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

RE: Problems with ^M

2001-07-16 Thread Peter Cornelius
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

Re: Problems with ^M

2001-07-16 Thread System Administrator
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

RE: Problems with ^M

2001-07-16 Thread Brian
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.

Re: Problems with ^M

2001-07-16 Thread Brent Michalski
cc: [EMAIL PROTECTED] Subject: Re: Proble

Re: Problems with ^M

2001-07-16 Thread GoodleafJ
--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

Re: Problems with ^M

2001-07-16 Thread Brett W. McCoy
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

RE: Problems with ^M

2001-07-16 Thread Daryl J. Hoyt
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'

Problems with ^M

2001-07-16 Thread System Administrator
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