in reply to \n size

\n is one byte, even on Windows. \r\n is two bytes. I make no claims for anything where Unicode is involved (especially if it's UTF-32). Are you looking for binmode?

Update: (Sat Dec 15 20:34:22 UTC 2001) Yes, that's basically right. Perl writes the appropriate line ending character. It's not just \n on DOS-derived systems, nor on the MacOS platform.

Replies are listed 'Best First'.
Re: Re: \n size
by giulienk (Curate) on Dec 16, 2001 at 00:12 UTC
    So \n is always \n but it changes its behavior when you write it to a file not in binmode on a MSDOS/Windows system?

    gkinueliileunikg