What I (think I) want is to tie *all* the hashes in the hash of hashes so that they are always retrieved sorted, so that the output from Data::Dumper is always consistent.
This is overkill of a level that boggles my mind. You can either upgrade Data::Dumper so you can use the Sorted Sortkeys method available in later releases, or do some minor surgery to Data::Dumper itself (dont forget to rename it so you dont accidentally overwrite it or something) and leave it at that. Doing this via a Tie is going to be Very Hard, hacking dumper to produce sorted output is so close to trivial Ill just leave it at that.
• Update:
Fixed the method name.
In reply to Re: Sort-Tying all hashes in a hash of hashes
by demerphq
in thread Sort-Tying all hashes in a hash of hashes
by welchavw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |