pudge@pobox.com (Chris Nandor) writes: [allegedly from the Camel, although not in the Sept. 1996 Second Edition. Can be found in perldiag.pod, though, with the help of Shuck] } } In either case, the Perl code in question will probably }need to be converted with something like s/\x0D\x0A?/\n/g before it can be }executed. Yes, but, for MacPerl, this is wrong. It should be s/\x0D?\x0A/\n/g, because you absolutely want to get rid of the \x0A. The presence of extra newlines is less of a problem than the presence of an unprintable character. This will fix both Unix and DOS files under MacPerl. The original would "fix" both Mac and DOS files, leaving Unix text alone. (In fact, a simple s/\r//g should suffice in most cases.) The answer to the original question is that you should strip \r. In MacPerl, \r = \x0A. } }-- }Chris Nandor pudge@pobox.com http://pudge.net/ }%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10 1FF7 7F13 8180 B6B6']) }#== MacPerl: Power and Ease ==# }#== Publishing Date: Early 1998. http://www.ptf.com/macperl/ ==# } --- Paul J. Schinder NASA Goddard Space Flight Center Code 693, Greenbelt, MD 20771 schinder@pjstoaster.pg.md.us ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch