in reply to Swapping keys and values in a hash with slices
It is an acceptable way and typically
is used when you want to add one hash to another (large) hash, avoiding to do$large{keys %foo} = $values %foo;
which does unnecessary copying.%large = (%large, %other)
As tomhukins pointed out, there are easier ways of doing what you're doing.
ihb
See perltoc if you don't know which perldoc to read!
Read argumentation in its context!
|
|---|