p4raw-id: //depot/perl@7999
#!./perl
-print "1..19\n";
+print "1..20\n";
$h{'abc'} = 'ABC';
$h{'def'} = 'DEF';
print "ok 19\n";
}
+# Check for Unicode hash keys.
+%u = ("\x{12}", "f", "\x{123}", "fo", "\x{1234}", "foo");
+$u{"\x{12345}"} = "bar";
+@u{"\x{123456}"} = "zap";
+
+foreach (keys %u) {
+ unless (length() == 1) {
+ print "not ";
+ last;
+ }
+}
+print "ok 20\n";