Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: key-values swappedby Tanktalus (Canon) |
on Feb 18, 2005 at 15:43 UTC ( [id://432367]=note: print w/replies, xml ) | Need Help?? |
Talking about hurting one's head ... Reversing a hash, you have to watch out for value collisions which could cause you to lose keys. At least, from the perspective of the original hash. Just trying to think about both hashes at the same time in the context of keys and values is giving me a headache. Where is my caffeine? Update for the humour-impaired: This is a joke. Relax. ;-)
In Section
Seekers of Perl Wisdom
|
|