Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Search hash keys using values from array

by Eily (Monsignor)
on Mar 23, 2017 at 15:04 UTC ( [id://1185640]=note: print w/replies, xml ) Need Help??


in reply to Search hash keys using values from array

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.

  • Comment on Re: Search hash keys using values from array

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1185640]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-23 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found