http://qs1969.pair.com?node_id=650986


in reply to Re: hash undef?
in thread hash undef?

defined returns a boolean false (an empty string), not undef, if the value it is testing is not defined:

perl -wMstrict -e "print 'defined returns defined' if defined defined undef" defined returns defined