Hash::...:Compat(3pm)

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

πŸ’– 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::RefHash
  • Tie::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 πŸŽ€


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