From: A. Sinan Unur on
Ted <r.ted.byers(a)rogers.com> wrote in
news:f4fc5e2a-56e8-415f-b8bd-55d669300711(a)a70g2000hsh.googlegroups.com:

> On Apr 24, 6:31�pm, Martijn Lievaart <m...(a)rtij.nl.invlalid> wrote:
>> On Thu, 24 Apr 2008 14:10:08 +0000, Ben Bullock wrote:
>> > Ted <r.ted.by...(a)rogers.com> wrote:
>>
>> >>> Try running the following script to clarify what this means:
>>
>> >>> #!/usr/bin/perl
>> >>> use warnings;
>> >>> use strict;
>> >>> my $a;
>> >>> my $b = "";
>> >>> print "a is defined\n" if defined($a); print "b is defined\n" if
>> >>> defined($b);
>>
>> >>> Here $b is a "real null string" and $a is undefined.
>>
>> > Excuse me, this should say '$b is a "defined null string"' not
>> > "real".
>>
>> No, $b is an empty string. Certainly not a null string. There is no
>> such thing as a null string in perl. C++ has a null string concept
>> IIRC, but Java and C don't, they allow the variable to be set to
>> NULL, which in perl is setting it to undef.
>>
> FTR, C++ does not have a null string, at least not in the definition
> of the language or in the standard C++ library.

But NUL marks the end of the stirng. Either way, it looks like it is
time for the rest of us to ignore the rest of this thread.

Sinan

--
A. Sinan Unur <1usa(a)llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/