if (undef eq "") { print "undef evaluates to empty string in string context\n"; } if (undef == 0) { print "undef evaluates to zero in numeric context\n"; }