Catman...et_hash(3pm)
π Catman...et_hash(3pm) π
okay bestie, so this is the page for Catmandu::Fix::set_hash β it's a fix, it's tiny, it's iconic, and it's about to be your whole personality for the next ninety seconds. β¨
πΈ NAME πΈ
Catmandu::Fix::set_hash β add or change the value of a HASH key or ARRAY index to a hash π
no cap, that's the entire job description. she sets hashes. she does not elaborate.
π¦ DESCRIPTION π¦
so here's the tea, and it's important tea: contrary to add_field, this one will not create the intermediate structures if they're missing. π
like. if the path you're pointing at doesn't already exist? she's not building it for you. she's not your contractor. she's not laying down scaffolding at 3am. she just... doesn't. lowkey a boundary queen. π
so pls make sure the structure is already there before you ask her to fill it in, or you're gonna have a bad time. π
π SYNOPSIS π
here's how you actually use her, fr fr:
# Change the value of 'foo' to an empty hash
set_hash(foo)
# Or a hash with initial contents
set_hash(a: b, c: d)
okay so look at that first one β set_hash(foo) β boom, the value of 'foo' is now an empty hash. nothing in it. a clean slate. a blank canvas. a fresh Notion page with zero blocks. β¨
and then set_hash(a: b, c: d) is the glow-up version where you hand her some initial contents right out the gate, so your hash shows up already dressed and ready to be perceived. π
π SEE ALSO π
Catmandu::Fixβ the mothership, the origin story, the whole cinematic universe π«Ά go read her next, iykyk
and that's the page!! short, sweet, slays, ate, left no crumbs. π
this whole thing lives in the User Contributed Perl Documentation, perl v5.40.1, dated 2026-01-24 β so like, if you're reading this in the future, hi, hope the hashes are hashing. β bye bestie!! ππ§
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms