in reply to Re: help with strict
in thread help with strict
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: help with strict
by davidj (Priest) on Jun 04, 2004 at 06:25 UTC | |
by chromatic (Archbishop) on Jun 04, 2004 at 07:20 UTC |