libclass-autoloadcan-perl

Module managing conflict between autoload, can and inheritance
  https://metacpan.org/release/Class-AutoloadCAN
  0
  no reviews



Class::autoloadcan solves a fundamental conflict between autoload, can and inheritance. the problem is that while you can implement anything in autoload, universal::can is not aware that it is there. attempting to modify universal::can to document those methods is very hard. and if a parent class uses autoload then subclasses have to do a lot of work to make their autoloads cooperate with the parent one. it is harder still if 2 parent classes in a multiple inheritance tree wish to cooperate with each other. few try to do this, which may be good since those who try usually get it wrong. see http://www.perlmonks.org/?node_id=342804 for a fuller discussion.

with this module instead of writing autoloads, you write cans. based on what they return, class::autoloadcan will decide whether you handle the call or it needs to search higher up the inheritance chain.