Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: help sorting hash of hashes by value

by cavac (Parson)
on Apr 07, 2022 at 07:07 UTC ( [id://11142777]=note: print w/replies, xml ) Need Help??


in reply to help sorting hash of hashes by value

If your amount of data is sort of limited and fits into RAM, the answer by by graff is the way to go. If the data gets bigger, or more complex, or you also start needing more complex sorting/filtering, or you start running into performance problems, you might want to look at using a proper SQL database. For example, PostgreSQL is free, and Perl has excellent support through DBI/DBD::Pg.

Modern databases are super optimized to deal with exactly those kinds of problems. Plus, with PostgreSQL you get the benefit that you can implement server side smarts in Perl (among other programming languages).

perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found