Skip Menu |
Report information
Id: 129163
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: gfldex <wenzel.peppmeyer [at] gmx.de>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: binding to container of multidim Hash binds to value instead
To: rakudobug [...] perl.org
Date: Thu, 1 Sep 2016 19:51:07 +0200 (CEST)
From: "Wenzel P. P. Peppmeyer" <wenzel.peppmeyer [...] gmx.de>
Download (untitled) / with headers
text/plain 335b
my %h; say %h{1;2} = 1; dd %h; my $e := %h{1;2}; $e = 2; dd %h; # OUTPUT«(1)␤Hash %h = {"1" => ${"2" => 1}}␤Cannot assign to an immutable value␤ in block <unit> at <tmp> line 1␤» # expected analog to: my %h; say %h{1} = 1; dd %h; my $e := %h{1}; $e = 2; dd %h; # OUTPUT«1␤Hash %h = {"1" => 1}␤Hash %h = {"1" => 2}␤»


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org