in reply to Choosing between AUTOLOAD vs Delegation
I have recently been using RPC::Any and its very generalized mechanism for locating and invoking service modules (and yet, for doing so selectively... you can’t just make strings up i.e. to probe or attack the system) might be useful as a practical example for study.
Am I suggesting that it is exactly the same? Clearly, no. (It isn’t even closely related to the expressed goal.) But it does implement an important part: it does implement the easy ability to delegate even to “hundreds of” service routines which don’t have to be separately listed, and to “automagically” demand-load these modules without resorting to sugar. And, it’s right now in actual high-volume production use. So, it might be a good source of ideas and implementations that could apply.