Dpkg::Contr...shCore::Tie(3perl)

πŸŽ€ NAME πŸŽ€

Dpkg::Control::HashCore::Tie β€” the little module that ties a Dpkg::Control::Hash object πŸ’… (yes bestie, it's from libdpkg-perl, section 3perl, we love a perl era icon)


✨ DESCRIPTION ✨

Okay so picture this: this module hands you a class whose whole job is tying a hash 🫢. It pulls off all your fave hash-like functions by normalizing the name of fields it receives in keys β€” and it does that with Dpkg::Control::Fields::field_capitalize(), no cap.

It also lowkey keeps receipts: it stores the order in which fields have been added, so it can dump them back out in that exact same order later. Iconic behavior, truly. But heads up β€” that order info isn't even stored here, it lives in a parent object of type Dpkg::Control. Main character energy in a whole other file, honestly.

Note: this is a private module, and its API can change at any time 😭 so don't get too attached to the current vibe, fr fr.

🌸 FUNCTIONS 🌸

  • $ctrl = Dpkg::Control::Hash->new($parent) β€” returns a reference to a tied hash that implements storage of simple "field: value" mappings, exactly the kind used all over the place in many Debian-specific files πŸ’– your fave field: value moment, now hash-shaped.

πŸ¦‹ CHANGES πŸ¦‹

Version 0.xx

This is a private module πŸ™ˆ that's it, that's the change log, she's mysterious, she's private, periodt.


k bye bestie, go normalize some field names πŸ’…βœ¨

signing off from libdpkg-perl, version 1.23.11-dirty, dated 2026-09-09 πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from