in reply to Is undef equal to zero

== is numeric comparison.
Non-numeric values are 0 in numeric context (there are exceptions to this).
undef isn't a number, therefore in numeric context, its 0.