Perl: the Markov chain saw | |
PerlMonks |
Re: Search hash keys using values from arrayby Eily (Monsignor) |
on Mar 23, 2017 at 15:04 UTC ( [id://1185640]=note: print w/replies, xml ) | Need Help?? |
While the proposed solution of reversing the hash is technically correct, I can't help but think that the real solution probably is to construct the hash correctly in the first place. Going even further, your question looks like a XY Problem: you are asking about the way to correct an issue that you encountered while trying to solve a bigger problem. So I strongly advise you to read How do I post a question effectively? And then post a description of your global problem, and how your array and hash are elements of your attempted solution. Edit: Not_a_Number told me my second paragraph was confusing, so I rephrased and went straight to the point.
In Section
Seekers of Perl Wisdom
|
|