Moose:...::Hash(3pm)
π 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:
atputexistskeysvalueskvsliceeacheach_keyeach_valueeach_n_valuesmetaprintsay
πΈ SUPPORT πΈ
got a bug? don't suffer in silence, bestie π
- Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Moose-Autobox> β or, if you're feeling email-y,
bug-Moose-Autobox@rt.cpan.org<mailto:bug-Moose-Autobox@rt.cpan.org> π - There is also a mailing list available for users of this distribution, at <http://lists.perl.org/list/moose.html> π¬
- There is also an irc channel available for users of this distribution, at
#mooseonirc.perl.org<irc://irc.perl.org/#moose> π¬
π AUTHOR π
Stevan Little <stevan.little@iinteractive.com> β legend behaviour, we love to see it π«Ά
β COPYRIGHT AND LICENSE β
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
- debian bookworm: libmoose-autobox-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoose-autobox-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoose-autobox-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoose-autobox-perl 0.16-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoose-autobox-perl 0.16-2 Β· 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