----- Original Message ----- 
From: "Ambat, Gopakumar (STSD)"
.
.
>
> The "additional" 0D is coming because Perl seems to be treating 0A as a
> linefeed and adding a carriage return (0x0D) to it.. binmode was
> supposed to prevent this

Yes, binmode should prevent the 0x0D being written to file - at least it
does on my perl 5.8.4 on Win32.
Not sure that this is the most appropriate place to ask about this. Try
perlmonks or comp.lang.perl.misc if you don't get a satisfactory answer
here. Perhaps someone there has a similar experience and can help out.

Best to provide a complete, functional, (though minimal) script that
demonstrates the problem - rather than a snippet. You're snippet doesn't
demonstrate how you've managed to verify that the file does, indeed, contain
a 0x0D. And perhaps, in checking the value on the file, you've done
something improper. Without a complete script, no-one can know exactly what
you have done.

Cheers,
Rob

Reply via email to