[Mono-list] newline and cvs

Pixel pixel@mandrakesoft.com
03 Mar 2002 15:39:51 +0100


"Gaurav Vaish" <gvaish@iitk.ac.in> writes:

> #! /usr/bin/perl
> 
> while(<STDIN>)
> {
> ...

please, when using perl, write the perl way, 
TIMTOWTDI but some are better than others ;p

remove \r:  perl -pi -e 's/\r$//' file1 file2...
   add \r:  perl -pi -e 's/\r?$//' file1 file2...