Message-Id: <
200705301221.l4UCLFwf010411@zen.crypt.org>
p4raw-id: //depot/perl@31311
@INC = qw(. ../lib);
require './test.pl';
}
-plan tests => 117;
+plan tests => 120;
my $list_assignment_supported = 1;
ok(! exists($h{'k2'}));
is($h{'k1'},111);
}
-
+{
+ my %h=('k1' => 111);
+ our $k = 'k1'; # try dynamic too
+ {
+ local $h{$k}=222;
+ is($h{'k1'},222);
+ $k='k2';
+ }
+ ok(! exists($h{'k2'}));
+ is($h{'k1'},111);
+}