If you use ftp in text mode, it should add the ^M when going towards 
windows and remove it when going away.  This *should* be automatic.

If this doesn't work, then you can handle it in your perl script.  
Instead of using chomp to remove the <lf> from the end of your line, use

$line=~s/[\r\n]+$//;

this will remove \r, \n, or \r\n from the end of your line.

Gary

On Friday 25 May 2001  7:49 am, baby lakshmi wrote:
> hi
> while doing ftp from windows to unix, the file contains ctl M at the
> end of each line. my file is a huge data file. i am not able to
> delete that. is there any better way to delete it.
> If anyone can answer this, it wud be helpful to me.
> Thank you
> Regards
> babylakshmi
>
> _____________________________________________________________________
>____ Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 
    

Reply via email to