Rajagopalan, Karthik wrote:

> Hi Perl_Techies,
> 
> We use AS Perl built from source linking with 'binmode.obj' to avoid
> translation of newline character. When we attempt to read a file using
> C's file API written from a perl code, we get ^M character. I was with
> the assumption that binmode.obj would handle the translation but it is
> not as expected. When we use binary mode explicitly in Perl to write a
> file, we could able to read the content properly in C. Is my assumption
> of 'binmode.obj' wrong? Please clarify..

When reading a DOS/Windoze text file, you want to leave binmode
turned off in order to remove the incoming \r characters.  When
writing a file, you can prevent the \r from being added by using
binmmode.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to