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

Re: [MacPerl] Re: Newlines



On Sun, Oct 12, 1997 at 05:28:44PM -0400, Chris Nandor wrote:
} At 16.47 10/12/97, Mark F. Murphy wrote:
} >>Just what you said, convert it to Mac CR (\015) instead of UNIX LF (\012).
} >>Most text editors do this, along with gobs of other utilities, and you can
} >>make a MacPerl droplet to do it as well:
} >
} >Well... I was hoping I didn't have to translate the files first.  I was
} >kinda hoping MacPerl would work with either transparently.
} 
} Nope.  This isn't a good idea.  What if you wanted embedded \012 characters in your MacPerl script?  It would get changed to \015 whenever you ran it.  That would be bad.  Even with the sample script I gave you, that is a danger to watch out for.  This is simply a fact of life when dealing with cross-platform text files.

What Chris said.  In any event, Unix Perl won't work with Mac text
Perl scripts (try it sometime), so why should MacPerl work with Unix
text Perl scripts?  Conversion is a one line Perl script, and there
are tons of other ways available to do it.  It can be automatically
done during transfer, for example.

} 
} --
} Chris Nandor             pudge@pobox.com             http://pudge.net/
} %PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
} #==            MacPerl:  Programming for the Rest of Us            ==#
} #==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#
} 
} 
} 
} ***** Want to unsubscribe from this list?
} ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch

-- 
--------
Paul J. Schinder
NASA Goddard Space Flight Center
schinder@leprss.gsfc.nasa.gov

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