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 reply to Re: Search hash keys using values from array
by Eily
in thread Search hash keys using values from array
by AhmedABdo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |