Mojo::Loader man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

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

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 "Exception: $e" if ref $e;
	 }

   "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.1			  2011-09-01		       Mojo::Loader(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net