Liang wrote:
> Gunnar Hjalmarsson wrote:
>> Liang wrote:
>>> I want to convert a file from dos formate to unix format. This
>>> is very easy in unix. But in dos environment, the script can't
>>> work.
>>
>> You need to binmode the OUTPUT filehandle, or else the "\r"
>> characters are reinserted by the OS when you write to OUTPUT.
>>
>> perldoc -f binmode
>
> Thanks a lot, it works!
That's fine, but please read Jürgen's reply also for a more
accurate/complete description of why.
--
Gunnar Hjalmarsson
Email:
http://www.gunnar.cc/cgi-bin/contact.pl