At 18.02 -0500 1998.11.18, Oliver Moffat wrote: >What is the best way to change the Mac \r to the Unix \n? It depends on what \r and \n you are talking about. First of all, MacPerl's \r is the same as Unix's \n. MacPerl's \n is different from Unix's \n. >Should I be writing "\012" instead of "\n" in my script? It depends on the usage. >What about multi-line quotes (ie. print FH qq~ lines and lines of >blah...blah...blah ~; )? > >Or should I just stop worrying and let Fetch take care of all this? Yes. :) Here is the scoop. * In Internet socket communication, use \015 and \012, not \r and \n. * In local files, use \n. * When transferring text files, transfer them in TEXT/ASCII mode, and the newlines will be transferred properly. perlport.pod has a full discussion of these issues. See it on CPAN, in perl5.005, or on my MacPerl site (http://pudge.net/macperl/). -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch