Moose:...::Hash(3pm)

πŸ“¦
version 0.16 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Moose::Autobox::Hash β€” the Hash role πŸ’–

okay bestie, welcome to Moose:...::Hash(3pm), a lil' page from the User Contributed Perl Documentation corner of the world. it's giving role energy, it's giving hash energy, and honestly? we're obsessed. let's get into it 🫢


✨ VERSION ✨

version 0.16 β€” yes queen, that's the one 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

like, here's the vibe in code form:

use Moose::Autobox;

print { one => 1, two => 2 }->keys->join(', '); # prints 'one, two'

see how that just... works? iconic behaviour, no cap ✨


πŸ’… DESCRIPTION πŸ’…

This is a role to describes a Hash value. (yes, that's the original wording, we're not editing the source, bestie β€” we respect the material πŸ’–)

tl;dr: it's the role that says "hey, I'm a hash, and here's all the stuff I can do." main character energy fr fr πŸ‘‘


πŸŽ€ METHODS πŸŽ€

  • delete β€” the method is there. that's it. that's the whole note. short king πŸ‘‘
  • merge β€” hand it a hashref and it hands you back a new hashref, with right precedence shallow merging. new hash, who dis 🌈
  • hslice β€” slices a hash, but instead of giving you some sad little list, it returns the keys and values as a new hashref. slay πŸ’…
  • flatten β€” also just listed here. we said what we said ✨

🧚 Indexed implementation 🧚

these are the ones that come along for the ride:

  • at
  • put
  • exists
  • keys
  • values
  • kv
  • slice
  • each
  • each_key
  • each_value
  • each_n_values
  • meta
  • print
  • say

🌸 SUPPORT 🌸

got a bug? don't suffer in silence, bestie 😭


πŸ‘‘ AUTHOR πŸ‘‘

Stevan Little <stevan.little@iinteractive.com> β€” legend behaviour, we love to see it 🫢


This software is copyright (c) 2006 by Infinity Interactive, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

fr fr, that's the whole license β€” same terms as Perl 5, so go forth and redistribute responsibly πŸ’–

and that's the page, bestie! this lil' masterpiece is perl v5.34.0, dated 2022-06-15, and it lives under the name Moose:...::Hash(3pm). mwah, go forth and hash it up πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from