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
|
---|
In Section
Seekers of Perl Wisdom