in reply to Re: Perl 28 broke L: How to fix?
in thread Perl 28 broke L: How to fix?

I'm not sure how to best implement the functionality of L. For real method calls, (ab)using UNIVERSAL::AUTOLOAD will continue to work I think, but for functions called by absolute name, I'm not aware of any approach where you can find the package name soon enough and then inject AUTOLOAD there.

I found this but don't know how to implement it:

The simple fix for old code is: In any module that used to depend on inheriting AUTOLOAD for non-methods from a base class named BaseClass, execute *AUTOLOAD = \&BaseClass::AUTOLOAD during startup. 

http://www.rocketaware.com/perl/perldelta/Deprecated_Inherited_C_AUTOLOAD.htm

Replies are listed 'Best First'.
Re^3: Perl 28 broke L: How to fix?
by Corion (Patriarch) on Oct 28, 2019 at 16:37 UTC

    Yes. That's what I meant when mentioning the INIT block.