in reply to Getting keys/values from a referenced hash

Well, have you read perldoc perlref?

You can use either

keys %{$hashref}; values %{$hashref};

or more short syntax

keys %$hashref; values %$hashref;