>>>>> "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 guessed correctly here, a better answer for the archive is:

    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 testable with various predicates.  But none of those are a
    one-to-one match with "NULL".  So the question is unanswerable as
    stated.

Yes, I just made this up. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to