in reply to Re^2: Passing hash reference to a subroutine
in thread Passing hash reference to a subroutine

You could dereference that without the braces: $$myref{$key}.

Also, map is good for your printing:

print map { "$_=$$myref{$_}\n" } sort keys %$myref;