Catman...et_hash(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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