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

Re: [MacPerl] Re: Newlines



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.

--
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