use v6-alpha; use Test; plan 7; { my %hash = (a => 1, b => 2); is "%hash", 1, '"%hash" works'; is "<%hash>", '<1>', '"<%hash>" works'; } { my $hash = { a => 1, b => 2 }; is "$hash", 1, '"$hash" works'; is "<$hash>", '<1>', '"<$hash>" works'; } { # L my %hash = { a=> 1, b => 2 }; is "%hash{}", "a\t1\nb\t2\n", 'interpolation with curly braces'; is "%hash<>", "a\t1\nb\t2\n", 'interpolation with angle brackets'; is "%hash", '%hash', 'no interpolation'; }