Shawn Milo wrote:
On 3/13/07, Bill Jones <[EMAIL PROTECTED]> wrote:
My tests all show that ^@ is not null but the \n you want.

Control-J is two bytes:   \0  \n

Under C the \0\n is a End-Of-String indicator -- required to
differentiate it from numbers, etc.

HTH/Sx  =)
--
WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/
http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on

Thanks! I'll post back to the list once I find out whether this all
turns out okay. The problem is that we have to create a file which is
being sent to a client, who will then import it. I won't be able to
test it myself, in other words. I wanted to be as sure as possible
that the output I was seeing was correct.

Unless I'm in a different parallel universe this doesn't make sense at all!

What tests have you done Bill?

How is ^@ (a null or zero byte) equal to "\n"?

How is control-J two bytes? I thought it was pretty much defined as the
character consisting of the least-significant five bits of the value for
the letter 'J', which is ten.

Under my C, internal strings are terminated with a null byte character "\0"
or "\c@", and only garbage follows that null terminator.

Rob

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to