debian man page for mojo::loader

Query: mojo::loader

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Mojo::Loader(3pm)					User Contributed Perl Documentation					 Mojo::Loader(3pm)

NAME
Mojo::Loader - Loader
SYNOPSIS
use Mojo::Loader; # Find modules in a namespace my $loader = Mojo::Loader->new; for my $module (@{$loader->search('Some::Namespace')}) { # And load them safely my $e = $loader->load($module); warn qq{Loading "$module" failed: $e} if ref $e; }
DESCRIPTION
Mojo::Loader is a class loader and plugin framework.
METHODS
Mojo::Loader inherits all methods from Mojo::Base and implements the following new ones. "load" my $e = $loader->load('Foo::Bar'); Load a class and catch exceptions. Note that classes are checked for a "new" method to see if they are already loaded. if (my $e = $loader->load('Foo::Bar')) { die ref $e ? "Exception: $e" : 'Already loaded!'; } "search" my $modules = $loader->search('MyApp::Namespace'); Search for modules in a namespace non-recursively.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Loader(3pm)
Related Man Pages
data::phrasebook::loader(3pm) - debian
mojo::content::multipart(3pm) - debian
mojo::cookiejar(3pm) - debian
mojo::dom::html(3pm) - debian
mojo::upload(3pm) - debian
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
Installing Dash Shell on OS X Lion
How can I do this in VI editor?
How to copy a column of multiple files and paste into new excel file (next to column)?
My first PERL incarnation... Audio Oscillograph