in reply to Re^2: Prototypes required even after mocking a sub
in thread Prototypes required even after mocking a sub
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.