http://qs321.pair.com?node_id=193323


in reply to deepequals

Storable provides that through the $Storable::cannonical variable. Quoting from the documentation:

Normally, Storable stores elements of hashes in the order they are stored internally by Perl, i.e. pseudo-randomly. If you set $Storable::canonical to some TRUE value, Storable will store hashes with the elements sorted by their key. This allows you to compare data structures by comparing their frozen representations (or even the compressed frozen representations), which can be useful for creating lookup tables for complicated queries.
-sauoq
"My two cents aren't worth a dime.";