>* 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... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword... John Porter
- Re: RFC 263 (v1) Add null() keyword... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fund... Paris Sinclair
- Re: RFC 263 (v1) Add null() keyword and fundamental ... John Porter
- Re: RFC 263 (v1) Add null() keyword and fundamen... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fund... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and ... iain truskett
- Re: RFC 263 (v1) Add null() keyword... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword... iain truskett
- Re: RFC 263 (v1) Add null() keyword and ... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword... Damien Neil
- Re: RFC 263 (v1) Add null() keyword and fund... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and ... Graham Barr
- Re: RFC 263 (v1) Add null() keyword... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fundamental data ... Glenn Linderman