Nagesh Reddy wrote: > 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.
I don't think it can easily be done in the Parser. Slurp the file and delete the \r's (\x0d or \015) and rewrite if you must. On Win32, you would also need to binmode the FH before writing. -- ,-/- __ _ _ $Bill Luebkert ICQ=14439852 (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl) -/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/ _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs