The following module was proposed for inclusion in the Module List: modid: Data::XHash DSLIP: adphp description: Auto-indexed traversable ordered hashes userid: BKATZUNG (Brian Katzung) chapterid: 6 (Data_Type_Utilities) communities:
similar: Array::AsHash Array::Assign Array::OrdHash Data::Omap Tie::IxHash Tie::Hash::Array Tie::LLHash Tie::StoredOrderHash rationale: This module is another implementation of ordered hashes. I believe it blurs the line between hashes and arrays more than other implementations. Some of the key features that distinguish Data::XHash from other implementations are as follows: 1) The ability to mix-and-match values with and without explicit keys. Values without keys are assigned a sequential index as key automatically. PHP, for example, also supports this. 2) Built-in path traversal that supports auto-vivification of nested data structures just like you would expect when using native hashrefs and arrayrefs. 3) Easy conversion to or from native Perl hashes and arrays either at the level of a single XHash or as a nested tree of XHash, with either an array-based or hash-based emphasis. 4) Calling new() returns a blessed reference to a tied hash, so you can use standard Perl hashref-like references *and* call methods on it. enteredby: BKATZUNG (Brian Katzung) enteredon: Mon Aug 27 05:16:12 2012 GMT The resulting entry would be: Data:: ::XHash adphp Auto-indexed traversable ordered hashes BKATZUNG Thanks for registering, -- The PAUSE PS: The following links are only valid for module list maintainers: Registration form with editing capabilities: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=a1a00000_c36c2ae3e20adf6c&SUBMIT_pause99_add_mod_preview=1 Immediate (one click) registration: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=a1a00000_c36c2ae3e20adf6c&SUBMIT_pause99_add_mod_insertit=1 Peek at the current permissions: https://pause.perl.org/pause/authenquery?pause99_peek_perms_by=me&pause99_peek_perms_query=Data%3A%3AXHash