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

[MacPerl] invisible characters? (fwd)



According to Webmaster:
> Hi, I have a Perl script that assembles hundreds of little text files into
<snip>

Where to start?  Where to start?  :-)

Never FTP text files as binary files.  Use the standard
text file transfer because then FTP can translate the files
as it goes along.

Make sure BBEdit is saving the file as Macintosh text.  Not
as Unix text.  Always remember: Mac-to-Mac, Unix-to-Unix.
Don't mix and match.  It always stirs up bad pookey.  :-)

The ^M's are because the Mac uses \r, IBM uses \n\r, and
Unix uses \n.  So Mac text lines appear as lines with ^Ms
in it while Unix text files appear as one long character
string on Macs.  (Except with BBEdit which is smart enough
to know the difference.)

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