Perlbal::Util(3pm)

πŸ“¦
version 1.80 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

✨ Perlbal::Util ✨

okay bestie, welcome to Perlbal::Util πŸ’– this is a page from the User Contributed Perl Documentation, and it's all about the little helper functions that live deep inside Perlbal 🫢 they're internal, so like… they're for Perlbal's own use, iykyk πŸ’…

Perlbal::Util β€” utility functions internal to Perlbal πŸŽ€


πŸ¦‹ " rebless " πŸ¦‹

okay so this one is lowkey the star of the show ⭐

  • it safely re-blesses a locked hash β€” yep, the kind you get from use fields β€” into another package 🧚 no cap, it does it safely πŸ’–
🚨 bestie, read this part, it's giving very-much-on-purpose: for our convenience elsewhere, the set of allowable keys for the re-blessed hash will be the union of the keys allowed by its old package and those allowed for the package into which it is blessed πŸ‘‘ so like, both sets of keys stay legal, periodt πŸ’…

and that's the whole vibe, bestie πŸ¦‹ this was perl v5.34.0, dated 2022-06-28 🌸 go forth and re-bless responsibly, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from