![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Can't detect empty Hash from a MySQL tableby Corion (Pope) |
on Dec 26, 2020 at 21:35 UTC ( #11125758=note: print w/replies, xml ) | Need Help?? |
undef does not work the way you think it does:
This will always set a variable to undef. You likely want defined as in if( ! defined($text)) { ...:
In Section
Seekers of Perl Wisdom
|
|