Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Thanks for the feedback.
I was not aware of the autouse pragma. Sadly, it requires that the module name be explicit (no regex, no callback), and that the subroutine names which should trigger loading also be explicit. It seems at first glance to do what Class::LazyLoad does, though there may be subtle details I've missed. I did discover Class::Autouse and also the "later" pragma in the process of finding "autouse", though. These both much closer to my module. Both of these require explicit package names, but use AUTOLOAD so they can be method agnostic. The "later" pragma seems to have more features, but none I need, and with the additional restriction that it only applies in the namespace it is used-from, which will break things for me.
Thanks for pointing me in the right direction!
In reply to Re^2: appropriate name/place for module which does JIT loading of modules
by sakoht
|
|