in reply to How to redefine a modules private function?
This means the value is inlined at compile time, and you'd need to intercept the compilation between sub declaration and first call.
The default answer is that you need to a hard patch of the code (no monkey patch, copy it into another namespace)
I can't remember a clean possibility to register a callback to be called right after the sub declaration.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to redefine a modules private function?
by LanX (Saint) on Mar 08, 2022 at 20:43 UTC | |
by LanX (Saint) on Mar 09, 2022 at 00:25 UTC | |
by LanX (Saint) on Mar 09, 2022 at 13:30 UTC | |
by LanX (Saint) on Mar 09, 2022 at 13:46 UTC |