http://www.perlmonks.org?node_id=1202618


in reply to Re^6: 5.26 sigil reference syntax in subfunction
in thread 5.26 sigil reference syntax in subfunction

That example is neither short nor complete, so once again I'll have to speculate about what it is you're trying to achieve.

In the following code:

sub f { my ($r) = @_; $r->{level3} = 1; } my $rh; f($rh->{level1}{level2});
I'm guessing you'd like it to autovivify all three levels of hash, so that the effect is the same as
rh->{level1}{level2}){level3} = 1;
If so, that can be achieved with
f(\$rh->{level1}{level2}->%*);

Dave.