perl change ref of hash

前端 未结 3 1559
眼角桃花
眼角桃花 2021-01-25 07:13

I ran into this and couldn\'t find the answer. I am trying to see if it is possible to \"change\" the reference of a hash. In other words, I have a hash, and a function that ret

3条回答
  •  旧巷少年郎
    2021-01-25 08:04

    An experimental feature which would seemingly allow you to do exactly what you're describing has been added to Perl 5.21.5, which is a development release (see "Aliasing via reference").

提交回复
热议问题