Zhu Shanshan wrote: > As you said, when I substituted "s/\r\n$//" with "chomp", it did > work. After looking up the explanation of "chomp" in perldoc, I found > "chomp", which I always used to remove the newline previous, removes > any trailing string that corresponds to the current value of "$/". Hej, JFTR, you may also want to have a look at "perldoc perlport". The first issue discussed is "Newlines". lg, danielThread Previous