in reply to How hashes present keys and values.

The safest way is probably something like:
# values %foo map {$foo{$_}} keys %foo
That would make me more certain and probably the same for someone maintaining the code later (if that is a concern).