Aug 27, 2012, 12:47 PM
thanks, I tried that but it looks like I need to install something, is there a package or something:
Re: [FishMonger] reversing a hash
Ah sorry I forgot to add this: I have printed both the hashes, the normal one which produced
antobbo@antobbo-xps17-ubuntu:~$ perldoc -q 'How do I look up a hash element by value?'
You need to install the perl-doc package to use this program.
and the reversed one which gave
Lucy Exeter Samantha Oregon Gary Dallas Ian Reading
so it appears as if reversing a hash swaps the value and keys?!
Oregon Samantha Exeter Lucy Reading Ian Dallas Gary
(This post was edited by jazzo on Aug 27, 2012, 1:08 PM)