Hash::L...t::Level(3)

πŸ“¦
version 2.00 Β· 2 versions
, in fedora 43

πŸ’– 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 of filter() in DBIx::Class::Schema::Diff β€” that's the best example of how registered_keys can be used. iykyk. πŸ”₯

🌈 SEE ALSO 🌈

  • Hash::Layout

πŸ‘‘ AUTHOR πŸ‘‘

Henry Van Styn <vanstyn@cpan.org>


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