In that case, your “null” corresponds to the empty string, so you can test for true or false (because the empty string is “false” in Perl):
next if !$ex_date;
But it’s better (because clearer) to make the test explicit:
next if length $ex_date == 0; # or next if $ex_date eq "";
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re^3: Checking Variable for Not Null
by Athanasius
in thread Checking Variable for Not Null
by dirtdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |