Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrap any existing import in Attribute::Handlers' injected import
Some modules using Attribute::Handlers autotie feature have their own import method. When injecting an import method, attempt to wrap anything that exists, either in the class directly or in a parent class. We can't detect parent classes at injection time, because @isa may change, and this is actually common since users of Exporter will add it as a parent class at module runtime, while Attribute::Handlers injection would happen first during compilation. A better approach could involve using next::can from mro, but that also requires Sub::Util::set_subname, and Attribute::Handlers is dual life and currently supports 5.6.
- Loading branch information