On 3 Sep 2007 at 17:26, divya wrote: > A file generated on Windows machine is used on linux m/c while scripting. > A sample line from the file is as shown: > > //-------------------------------------------------------^M > File name : project_name^M > ..... > > Now in the perl script how can I remove ^M without running the command > dos2unix. > > Note: Trying to split the line whenever ^ detected is not working. > > Looking forward for your response.
I use s/\s+$//; Dp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/