"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...