You can only test for undefinedness via defined(). If you use undef with == or eq (or any other operator like them), it gets converted to 0 or the empty string.
_____________________________________________________
Jeff japhy Pinyan:
Perl,
regex,
and perlhacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;