Chris, my man, thank you for the table. :-) That's what I meant, but I didn't phrase it too well. Personally, the whole issue is confusing and misleading to *me*, and sometimes when I'm moving a text file from Internet land via a PC Zip disk via MacOS to MkLinux my head starts to hurt and I want to punch walls... :-) So when I can I just use \012 and \015 and make it explicit. And then there's the handy little -l switch which I see you use in all your posted scripts. Arved On Wed, 30 Dec 1998, Chris Nandor wrote: > At 11.19 -0500 12.30.1998, Arved Sandstrom wrote: > >As for the why, if you've opened a file with filehandle TXT, and do <TXT> > >on it, it reads *one* line from that file. What Perl considers to be a > >line, at that point, is dictated by the predefined variable $/, which is > >newline (\n) by default. Using MacPerl, it's actually CR, or \r. > > That's confusing and somewhat misleading. In MacPerl, \n is what is > normally known as CR. \r is then mapped to LF. For clarification: > > Unix perl MacPerl > --------- ------- > LF, \012, \cJ, \x0A, decimal 10 \n \r > CR, \015, \cM, \x0D, decimal 13 \r \n ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch