Re: How do I test for a NULL string value

2002-02-13 Thread Randal L. Schwartz
> "Paul" == Paul Johnson <[EMAIL PROTECTED]> writes: Paul> Start with perldata, which says "there are actually two varieties of Paul> null strings", and has done since at least Perl 4. The Perl 1 manpage Paul> mentions null strings. So do Learning Perl (2nd ed) and Learning Perl Paul> on Wi

Re: How do I test for a NULL string value

2002-02-13 Thread Paul Johnson
On Tue, Feb 12, 2002 at 07:54:23AM -0800, Randal L. Schwartz wrote: > Perl doesn't have NULL strings, so you can't test for them. Perl > has undef values, empty strings, strings that have only newline, > strings with only white space, strings that are false, and those > are all t

Re: How do I test for a NULL string value

2002-02-12 Thread Randal L. Schwartz
> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes: Randal> Do you mean "NULL" as in "empty string"? Randal> $string eq "" Randal> or Randal> ! length($string) Randal> will do. But if you mean something else by NULL, you'll need to be Randal> more specific. Although I guesse

Re: How do I test for a NULL string value

2002-02-12 Thread Randal L. Schwartz
> "Todd" == Todd Kennedy <[EMAIL PROTECTED]> writes: Todd> Hello, I am trying to test for a NULL value in a string variable Todd> but am unable to figure it out. I see that a RE of s/^\s// would Todd> test for a space at the beginning of a variable or line, but I Todd> can't seem to figure ou

How do I test for a NULL string value

2002-02-12 Thread Kennedy, Todd
Hello, I am trying to test for a NULL value in a string variable but am unable to figure it out. I see that a RE of s/^\s// would test for a space at the beginning of a variable or line, but I can't seem to figure out how to test for a NULL value. Can anyone help me out? Todd Kennedy Unix Admi