Message-ID: <
20010423165221.A20739@puffinry.freeserve.co.uk>
p4raw-id: //depot/perl@9799
package main;
-print "1..28\n";
+print "1..29\n";
$sch = {
'abc' => 1,
(@extra, %$avhv) = (foo => 42, pants => 53, bar => "HIKE!");
print "not " unless ref $avhv->[0] eq 'HASH' and @extra == 6;
print "ok 28\n";
+
+# Check hash slices (BUG ID 20010423.002)
+$avhv = [{foo=>1, bar=>2}];
+@$avhv{"foo", "bar"} = (42, 53);
+print "not " unless $avhv->{foo} == 42 && $avhv->{bar} == 53;
+print "ok 29\n";