Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binding to container of multidim Hash binds to value instead #5634

Open
p6rt opened this issue Sep 1, 2016 · 1 comment
Open

binding to container of multidim Hash binds to value instead #5634

p6rt opened this issue Sep 1, 2016 · 1 comment

Comments

@p6rt
Copy link

p6rt commented Sep 1, 2016

Migrated from rt.perl.org#129163 (status was 'new')

Searchable as RT129163$

@p6rt
Copy link
Author

p6rt commented Sep 1, 2016

From @gfldex

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}␤»

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant