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.
perl -pi -e 'y/\015//d' project_name
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/