Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Use of inherited AUTOLOAD for non-method is no longer allowed with Perl 5.34.

by LanX (Saint)
on Sep 27, 2021 at 17:07 UTC ( [id://11137055]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Use of inherited AUTOLOAD for non-method is no longer allowed with Perl 5.34.
in thread Use of inherited AUTOLOAD for non-method is no longer allowed with Perl 5.34.

FWIW: an even less stable hack would be to write something like an 'INIT {}' or 'CHECK{ }' block to indentify all defined packages/classes after compilation which inherit from the BASE_CLASS:: ( see ->isa in UNIVERSAL )

all those packages could then have a new AUTOLOAD added via eval.

this will not work in all cases because those timing issues in Perl are highly flexible:

  • a sub could have been called before compilation finished.
  • a class could be defined dynamically afterwards at runtime
  • ...

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137055]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found