I think that explanation is misleading. If what you say were true, I would expect this test to pass:
use Test::More tests => 1; my %empty_hash; my $value = 1; $value = $empty_hash{empty_value}; is( $value, 1, 'undef from hash should not overwrite defined value' );
Your second option (testing the definedness of the hash value assignments) is correct, though.
In reply to Re^2: help with strict
by chromatic
in thread help with strict
by jck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |