The ^M only occurs when the file is created on a Windows system, if you
ftp a file in bin mode from a UNIX system you will not get the ^M.  This
^M is a windows thing.

Craig

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:perl-unix-
> [EMAIL PROTECTED]] On Behalf Of Martin Moss
> Sent: Wednesday, April 24, 2002 2:39 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Perl-unix-users] ^M characters
> 
> The ^M also occurs if you ftp an ascii file using Binary method......
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Craig B. Nakata
> > Sent: Wednesday 24 April 2002 06:24
> > To: 'Nagesh Reddy'; [EMAIL PROTECTED]
> > Subject: RE: [Perl-unix-users] ^M characters
> >
> >
> > Nagesh,
> >
> > The ^M is a carriage return it come from Windows.  Windows uses a
> > carriage return new line (CR/LF) for an end of line.  On unix the
end of
> > line is a new line (LF).  To get rid of the CR you can do a
"dos2unix"
> > on the attachment, if you want to use perl you can do a substitution
on
> > the carriage return (e.g., s/^M//g).
> >
> > Hope this helps,
> > Craig
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > [mailto:perl-unix-
> > > [EMAIL PROTECTED]] On Behalf Of Nagesh Reddy
> > > Sent: Tuesday, April 23, 2002 3:11 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [Perl-unix-users] ^M characters
> > >
> > > Hi all  ,
> > >
> > > I  have  a problem  after  detaching  a  attachment from a  e-mail
,
> > > I am able to see  that the  detached  attachment  contains  ^M
> > > characters  appended to each line.
> > > Can  anyone  tell me  how  do i  get  rid  of the  ^M  characters
> > > in the file  detached  from  a  e-mail.
> > >
> > > Thanks,
> > > Nagesh.
> > >
> > >
> >
> > _______________________________________________
> > Perl-Unix-Users mailing list
> > [EMAIL PROTECTED]
> > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> _______________________________________________
> Perl-Unix-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to