Hash::...:Compat(3pm)
π Hash::Util::FieldHash::Compat(3pm) β the compat queen π
okay bestie, sit down, because this one is a tiny little module with a big heart π«Ά. It's a Perl thing, it lives in your manual as Hash::Util::FieldHash::Compat(3pm), and its whole job is: field hashes, but make them work everywhere. Periodt.
β¨ NAME β¨
Hash::Util::FieldHash::Compat β Use Hash::Util::FieldHash or ties, depending on availability. that's it, that's the whole assignment π
πΈ VERSION πΈ
version 0.11 β¨ (yes queen, we're at 0.11, hydrate and respect it)
π¦ SYNOPSIS π¦
like, here's the vibe. you just⦠use it:
use Hash::Util::FieldHash::Compat;
# pretend you are using L<Hash::Util::FieldHash>
# under older perls it'll be Tie::RefHash::Weak instead (slower, but same behavior)
no cap, that's it. drop those two lines in and let the module handle the drama behind the scenes π
π DESCRIPTION π
so here's the tea β. On older perls, this module gives you a drop-in compatible API to Hash::Util::FieldHash by using perltie. And when Hash::Util::FieldHash is available? It just uses that instead. effortless. iconic. main character energy β¨
The way this works means: code that needs field hashes gets to enjoy fast, robust field hashes on Perl 5.10 and newer π β but it still runs on the older perls that don't ship with that module at all. best of both worlds, fr fr.
π If you want all the details of the API, go read Hash::Util::FieldHash. That's where the full lore lives. This page is just the vibe check.
π SEE ALSO π
Hash::Util::FieldHashβ the moment π«Tie::RefHashTie::RefHash::Weak
π«Ά SUPPORT π«Ά
Found a bug? π No stress, bestie β bugs may be submitted through the RT bug tracker:
https://rt.cpan.org/Public/Dist/Display.html?Name=Hash-Util-FieldHash-Compat
β¦or you can email bug-Hash-Util-FieldHash-Compat@rt.cpan.org π
π AUTHOR π
ΧΧΧΧ Χ§ΧΧ'ΧΧ (Yuval Kogman) <nothingmuch@woobling.org> β an actual legend π§
β CONTRIBUTOR β
Karen Etheridge <ether@cpan.org> β thank you for your service π
πΈ COPYRIGHT AND LICENCE πΈ
This software is copyright (c) 2008 by ΧΧΧΧ Χ§ΧΧ'ΧΧ (Yuval Kogman).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay π
okay that's the whole page bestie!! this one's from perl v5.34.0, dated 2022-06-14, and it's filed under Hash::...:Compat(3pm) in the User Contributed Perl Documentation section. go forth and field-hash responsibly πβ¨πΈ
π¦ where this page comes from
- debian bookworm: libhash-util-fieldhash-compat-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhash-util-fieldhash-compat-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhash-util-fieldhash-compat-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhash-util-fieldhash-compat-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhash-util-fieldhash-compat-perl 0.11-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