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


in reply to Re: Subroutine question on use of uninitialized value.
in thread Subroutine question on use of uninitialized value.

$ perl -we 'my $h={k=>undef}; print $h->{k} if exists $h->{k}' Use of uninitialized value in print at -e line 1.

This is why defined() may be preferable.

-sauoq
"My two cents aren't worth a dime.";