Krang::ClassLoader - load Krang classes, using Krang::ClassFactory
# instead of this: use Krang::Element qw(foreach_element);
# write this: use Krang::ClassLoader Element => qw(foreach_element);
# for inheritence, instead of this: use base 'Krang::CGI';
# write this use Krang::ClassLoader base => 'CGI';
This module loads classes just like normal use, but it looks up the
full class names using Krang::ClassFactory before loading.
Ideally, this would work:
use pkg('Element') qw(foreach_element);
Unfortunately Perl requires that class names passed to use be
bare-words.
None.