You haven't said what you understand by "null" in this context. "null" is not a concept in Perl. We have defined and we have true. eg:
| Value | True? | Defined? |
|---|---|---|
| undef | No | No |
| 0 | No | Yes |
| '' | No | Yes |
| 1 | Yes | Yes |
| 'TIMTOWTDI' | Yes | Yes |
BTW, do you really find unless ! to be clearer than if?
In reply to Re: Checking Variable for Not Null
by hippo
in thread Checking Variable for Not Null
by dirtdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |