in reply to
printing chr(10) to a file also adds chr(13)
On Windows
binmode
will do the trick. You will not have the problem on Linux because Linux does not have a distinction between binary and text files.
Comment on
Re (tilly) 1: printing chr(10) to a file also adds chr(13)
In Section
Seekers of Perl Wisdom