26 Jan 2021 04:47:43 UTC
- Distribution: Exporter-Extensible
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (136 / 0 / 0)
- KwaliteeBus factor: 1
- 72.06% Coverage
- License: perl_5
- Perl: v5.0.0
- Activity24 month
- Download (33.73KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionNERDVANA Michael Conrad
Exporter::Extensible::Compat - 5.8 and 5.10 compatibiliy for Exporter::Extensible
This module provides a compatibility layer for perl 5.10 and 5.8. The module itself is not used at all; loading it applies monkey patches to Exporter::Extensible. Do not use this module, as it gets loaded automatically by Exporter::Extensible if needed.
The main problem solved here is that perl earlier than 5.12 does not install a sub into the package stash until after calling MODIFY_CODE_ATTRIBUTES, so the :Export attributes can't resolve to a name until later.
There isn't any good spot in the API of Exporter::Extensible to put this delayed processing, so about the only way to fix is to just perform it before any public API method, and at the end of the scope.
Michael Conrad <firstname.lastname@example.org>
This software is copyright (c) 2021 by Michael Conrad.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Exporter::Extensible, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Exporter::Extensible
For more information on module installation, please visit the detailed CPAN module installation guide.