Hash::L...t::Level(3)
π Hash::Layout::Level β the manual page, bestie edition β¨
okay so this is the User Contributed Perl Documentation page for Hash::Layout::Level(3), and honestly? it's giving "backstage pass" energy. let's get into it π
β¨ NAME β¨
Hash::Layout::Level β it's the Level definition object for Hash::Layout. that's the whole vibe. π¦
πΈ DESCRIPTION πΈ
so real talk: this class is used internally by Hash::Layout and it is not meant to be called directly. like, it's not for you, bestie, it's for the machinery. π
here's the tea though: the list of hashrefs you hand over to the levels param in the Hash::Layout constructor? each one of those gets used as the constructor arguments passed to this class, which then creates separate Hash::Layout::Level objects β one for each level. so every level gets its own little main character moment. π
if you want the actual full story, please refer to the main Hash::Layout documentation for more info. that's where the lore lives. π
π«Ά ATTRIBUTES π«Ά
index
the index value of the level. and listen β the first level is at index 0, zero-indexed like a true icon. this one is automatically supplied internally by Hash::Layout, so you don't gotta do a thing. π§
name
an optional name/string value for this level. and ngl? it's purely informational and is not currently being used for anything. it's just there. decorative. a little accessory. cute but unemployed. π
delimiter
the character (or string) that Hash::Layout uses when it's resolving composite key strings into fully qualified key paths, and for identifying which part of the composite key should map to this level. it's the little guy doing the dividing. π
it defaults to a single forward-slash (/).
registered_keys
an optional list β specifically an ArrayRef coerced into a HashRef β of keys that are associated specifically with this level. like delimiter, this meta-data is used by Hash::Layout purely for mapping the sub-strings of a composite key to a specific level. no other agenda, fr fr.
β¨ want to see it in the wild? go look at the implementation offilter()inDBIx::Class::Schema::Diffβ that's the best example of howregistered_keyscan be used. iykyk. π₯
π SEE ALSO π
Hash::Layout
π AUTHOR π
Henry Van Styn <vanstyn@cpan.org>
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2014 by IntelliTree Solutions llc.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, open source. πΈ
and that's the whole page, bestie π
β this was Hash::L...t::Level(3) from perl v5.42.0, dated 2025-07-25, and yes the title really does get truncated like that, we love a mysterious ellipsis. mwah πβ¨
π¦ where this page comes from
- fedora 43: perl-Hash-Layout 2.00-15.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms