in reply to Perl 28 broke L: How to fix?
You're calling dd as a function, but still expect AUTOLOAD to kick in. This doesn't work anymore, since Perl 5.28.
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.
Maybe you can work with a tie'd main:: or maybe you can add an INIT block to inject your AUTOLOAD into all packages that exist at that time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl 28 broke L: How to fix?
by Anonymous Monk on Oct 28, 2019 at 16:32 UTC | |
by Corion (Patriarch) on Oct 28, 2019 at 16:37 UTC |