There's more than one way to do things | |
PerlMonks |
Re: asking for suggestions about hash filesby psini (Deacon) |
on Jun 29, 2009 at 20:02 UTC ( [id://775792]=note: print w/replies, xml ) | Need Help?? |
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."
In Section
Seekers of Perl Wisdom
|
|