Hai David, I don't where you tried this have you tried this in NT or in UNIX?
$a="jaffer^"; $a=~s/\^M//; This works in NT print $a; But it wont works in Unix. Try this way in Unix $a=~s/\015//g; Let me know if any.... Thank you jaffer -----Original Message----- From: David Inglis [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 6:51 PM To: [EMAIL PROTECTED] Subject: how to remove a ^M charaters from a variable I am reading in a csv file and it has a control character ^M at the end of each line how can I remove these charaters, I have tried the following and had no success. $a=~s/\^M//; $a=~s/^M//; Any help appreciated thanks. -- Regards David Inglis 0408502342 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>