>* Tom Christiansen ([EMAIL PROTECTED]) [21 Sep 2000 05:49]:
>> > no strict;
>> > $a = undef;
>> > $b = null;
>> Perl already has a null string: "".
>Looks more like a string of no length than a null string.
Well, it's not. That's a null string. You're thinking of "\0",
a true value in Perl.
Here are the canonical definitions:
NULL STRING:
A string containing no characters, not to be confused with
a string containing a null character, which has a positive
length.
NULL CHARACTER:
A character with the ASCII value of zero. It's used by C
and some Unix syscalls to terminate strings, but Perl allows
strings to contain a null.
NULL LIST:
A list value with zero elements, represented in Perl by ().
--tom
- Re: RFC 263 (v1) Add null() keyword and... John Porter
- Re: RFC 263 (v1) Add null() keyword and... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and... Bryan C . Warnock
- Re: RFC 263 (v1) Add null() keyword and fundame... Paris Sinclair
- Re: RFC 263 (v1) Add null() keyword and fun... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fundamental data... John Porter
- Re: RFC 263 (v1) Add null() keyword and fundamental... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fundame... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and fun... iain truskett
- Re: RFC 263 (v1) Add null() keyword and... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and... iain truskett
- Re: RFC 263 (v1) Add null() keyword and fun... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and... Damien Neil
- Re: RFC 263 (v1) Add null() keyword and... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and fundame... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and fun... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and... Graham Barr
- Re: RFC 263 (v1) Add null() keyword and... Tom Christiansen
