http://www.perlmonks.org?node_id=1016092


in reply to Re: How come undef eq '' ??
in thread How come undef eq '' ??

Because eq is for string comparisons. undef stringifies to "", 0 stringifies to "0", and "" ne "0".

Change eq to == and it will print "In".