Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: asking for suggestions about hash files

by psini (Deacon)
on Jun 29, 2009 at 20:02 UTC ( #775792=note: print w/replies, xml ) Need Help??


in reply to asking for suggestions about hash files

Read all files, storing the values in a single hash, then sort-reverse the hash keys and take the first.

Your question does not consider the case in which more than one file has the highest value in the first column. If you want in the result all the values corresponding to the highest key, make that a HoA.

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

  • Comment on Re: asking for suggestions about hash files

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-12-10 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?