logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

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

Contributor

       Karen Etheridge <ether@cpan.org>

Description

       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.

Name

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

See Also

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

Support

       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>).

Synopsis

           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)

Version

       version 0.11

See Also