in reply to Re: Prototypes required even after mocking a sub
in thread Prototypes required even after mocking a sub

Thank you.

I did some preliminary and very basic quick tests to do the work in the compile phase, but to no avail. I will put more effort into seeing how I may be able to do this.

  • Comment on Re^2: Prototypes required even after mocking a sub

Replies are listed 'Best First'.
Re^3: Prototypes required even after mocking a sub
by BillKSmith (Monsignor) on Sep 21, 2018 at 20:51 UTC
    A recent thread 1215668 discussed the difficulty of overriding a function called by a module. The solution required executing the override before compiling the module. The details may apply to your problem.
    Bill
Re^3: Prototypes required even after mocking a sub
by Anonymous Monk on Sep 21, 2018 at 21:04 UTC
    In order for it to happen in the compile phase, the user must call your code (both loading your module and executing the sub override) in that file's compile phase, e.g. in a BEGIN block or use declaration.