DOKK / manpages / debian 12 / libhash-util-fieldhash-compat-perl / Hash::Util::FieldHash::Compat.3pm.en
Hash::Util::FieldHash::Compat(3pm) User Contributed Perl Documentation Hash::Util::FieldHash::Compat(3pm)

Hash::Util::FieldHash::Compat - Use Hash::Util::FieldHash or ties, depending on availability

version 0.11

    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)

Under older perls this module provides a drop-in compatible API to Hash::Util::FieldHash using perltie. When Hash::Util::FieldHash is available it will use that instead.

This way code requiring field hashes can benefit from fast, robust field hashes on Perl 5.10 and newer, but still run on older perls that don't ship with that module.

See Hash::Util::FieldHash for all the details of the API.

Hash::Util::FieldHash, Tie::RefHash, Tie::RefHash::Weak.

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Hash-Util-FieldHash-Compat> (or bug-Hash-Util-FieldHash-Compat@rt.cpan.org <mailto:bug-Hash-Util-FieldHash-Compat@rt.cpan.org>).

יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>

Karen Etheridge <ether@cpan.org>

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.

2022-06-14 perl v5.34.0