Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: undef and empty variablesby sundialsvc4 (Abbot) |
on Jan 19, 2011 at 18:16 UTC ( [id://883183]=note: print w/replies, xml ) | Need Help?? |
It is my understanding that undef always becomes NULL, and that the handling of “an empty string” may vary. (Database drivers tend to try to second-guess that situation, and the outcome is typically not that bad ...) Nevertheless, bear in mind that, in an array, undef is “a value.” The slot is occupied, although the value in that slot may be undef.
In Section
Seekers of Perl Wisdom
|
|