function (\%hash); function (\%hash1); function (\%hash2); sub function { # now I want to use the reference to access the hash I just # passed, but I'm not sure how. I need to add items to the # hash of hashes as well. # this will flatten the hash, I'd prefer to just know the # name of the hash I just passed %hash_reference = @_; for $key (keys %hashreference){ $hashreference{$key} ={moredata=>"datadatadata"}; } }