[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] the BINMODE command



I was just going through the old purple Perl book and came across this:

binmode
------------------------------------------------------------
	binmode( FILEHANDLE )
	binmode FILEHANDLE

This function....
(and then paragraph two...)

On systems that distinguish binary mode from text mode,
files that are read in text mode have \r\n sequences
translated to \n on input and \n translated to \r\n on
output.  (and then some more.)

	.	.	.

I was just browsing through the manual when I saw this.
Wouldn't this mean that MacPerl is supposed to do the
translation automatically on text files?

This is on page 128 of the PURPLE book.  I don't have my
blue book here.  Maybe someone can check this out in it
too?  Matthias?  Have you seen this before?  I don't
remember any conversations on this topic.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch