in reply to RE (tilly) 1: Module Proposal: Tie::SortHash
in thread Module Proposal: Tie::SortHash

Nice gotcha!

I am aware of that method however, it doesn't seem so straight forward if you ask me... at first I would think... "What the heck do I need a DB_File for?"

When I think, I want to have my hashes auto sort without doing (hardly) any work at all. I think: search.cpan.org searching for Hash and/or Sort... oh, ther it is (well, would be).

--
Casey

Replies are listed 'Best First'.
RE (tilly) 3: Module Proposal: Tie::SortHash
by tilly (Archbishop) on Aug 19, 2000 at 00:18 UTC
    Agreed it is not an obvious place to look. OTOH when I learned about tie, it was through DB_File. So from the time I learned that something like this was possible, I knew how to use it to autosort.

    YMMV of course.