You could dereference that without the braces: $$myref{$key}.
Also, map is good for your printing:
print map { "$_=$$myref{$_}\n" } sort keys %$myref;
In reply to Re^3: Passing hash reference to a subroutine
by hbm
in thread Passing hash reference to a subroutine
by tlk00
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |