Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: asking for suggestions about hash files

by psini (Deacon)
on Jun 29, 2009 at 20:02 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found