how do I test for a NULL string?on the beginners list, my response included:
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.Just wanted to bring that over here as well, since I like the way it came out.
-- Randal L. Schwartz, Perl hacker
In reply to How do I test for a NULL string? by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |