At 11:20 AM -0700 7/14/06, Alan Winston - SSRL Central Computing wrote: >Mark Berryman wrote: > >> Also, is there any defined order in which a hash is stored? > >I probably ought to know that. I _suspect_ it's just stored in the order >you inserted stuff into it. I really don't know how much garbage collection >goes on during runtime.
Do the following search in your POD directory and you will see that the order is randomized for algorithmic and security reasons and it has changed several times during the Perl 5 era: $ sea *.pod hash,order/match=and However, one of the FAQs has an entry called "How do I make my hash remember the order I put elements into it?": http://faq.perl.org/perlfaq4.html#How_can_I_make_my_ha -- ________________________________________ Craig A. Berry mailto:[EMAIL PROTECTED] "... getting out of a sonnet is much more difficult than getting in." Brad Leithauser