sub function { my %hash = %{shift}; # de-references $hash{three} = 3; # Does not affect the real %hash! }