
Module::New::Loader


my $loader = Module::New::Loader->new('SomeClass');
my $object = $loader->load('Recipe', 'Foo', @args);
# the $object should hopefully be SomeClass::Recipe::Foo,
# or Module::New::Recipe::Foo if the former is not found.
# (or croaks if the latter is not found, either.)

This is a dedicated module loader used internally.
may take some extra namespaces, and creates a loader object.
looks for a module under the registered namespaces and loads it.
loads and creates an instance of the specified module with extra arguments.

Kenichi Ishigaki, <ishigaki at cpan.org>

Copyright (C) 2007-2009 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.