in reply to Re: Re: 'reversing' a hash
in thread 'reversing' a hash

Wow! A whole 1.3 microseconds saved. And to think I didn't see any merit in it:)

On a slightly serious note, I think a novice perler might actually find the "values become keys and keys become values" slightly more obvious than the reverse method, which relies on a pretty good understanding of how hashes work in list contexts, on their first viewing, but once you understand that, the presence of the big clue, R-E-V-E-R-S-E does make it pretty clear:)


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller