$ 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.
In reply to Re^2: Subroutine question on use of uninitialized value.
by sauoq
in thread Subroutine question on use of uninitialized value.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |