At 12:21 PM -0700 10/17/97, Mark Manning/Muniz Eng. wrote: > > $theRecord = join( "\001", @X ); > > and to split it back apart you just: > > @X = split( /\001/, $theRecord ); > > Ok, but now you've gone into the area where Chris' program > can mess you up because you are using control characters to > denote a separator. Wait a minute! I am new to Perl, but the way I understand things, \001 are 4 ascii characters in a program, not a single byte control character. When the program executes, that \001 does get converted to a byte code, but if you open the program with the perl editor and parsor and it zaped out all of the non-printable characters, the \001 would still be there. Likewise, if I opened the source file with BBEdit, I would still see the \001. I would not have to turn on "show invisibles" to see it. Now the CR and LF characters ARE single bytes each. So if you zapped out the LF characters before execution, you would not end up zapping out and \010 (or is it \013) strings. If this were not the case, then FTPing the file in ascii mode would also zap out the \001 in @X = split( /\001/, $theRecord ); As well as fix the line endings. Is there something about Perl that I have not learned yet? -Chuck- __________________________________________________________________________ Chuck Rice <mailto:Chuck@WildRice.com> ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch