
jazzo
Novice
Aug 27, 2012, 12:47 PM
Post #5 of 5
(787 views)
|
|
Re: [FishMonger] reversing a hash
[In reply to]
|
Can't Post
|
|
thanks, I tried that but it looks like I need to install something, is there a package or something:
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. Ah sorry I forgot to add this: I have printed both the hashes, the normal one which produced
Lucy Exeter Samantha Oregon Gary Dallas Ian Reading and the reversed one which gave Oregon Samantha Exeter Lucy Reading Ian Dallas Gary so it appears as if reversing a hash swaps the value and keys?!
(This post was edited by jazzo on Aug 27, 2012, 1:08 PM)
|