in reply to Sort-Tying all hashes in a hash of hashes

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.


---
demerphq

<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

• Update:  
Fixed the method name.