Inexplicit tests, eg `if ($var)`, will not differentiate between undef and 0. However, you should be able to explicitly test for either 0 or undef.
for (0, undef, 1) { print "[$_] is true\n" if ($_); print "[$_] is false\n" if (not $_); print "[$_] is 0\n" if ($_ eq "0"); print "[$_] is undef\n" if (not defined $_); } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/