# New Ticket Created by Zoffix Znet
# Please include the string: [perl #131826]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=131826 >
If you give a structured list as an Array slice, you get structured data back:
my @a = 'a'..'z';
dd @a[(1, 2, 3), (5, (6, 7), (8, 9))];
# OUTPUT: (("b", "c", "d"), ("f", ("g", "h"), ("i", "j")))
But if you give the same type of structured list to a hash slice, you get flat
data back:
my %a = 'a'..'z';
dd %a{<a c e>, (<g i k>, ('m', ('o')))};
# OUTPUT: ("b", "d", "f", "h", "j", "l", "n", "p")
I'd expect the hash slice to be equally structured and give this back:
# OUTPUT: (("b", "d", "f"), (("h", "j", "l"), ("n", ("p"))))