NAME
Hub - Hub Library Interface
Part of the Hub Library
SYNOPSIS
We pollute our symbol table with all of our internal libraries EXPORT_OK symbols so you don't have to.
use Hub; # nothing imported
print 'Why hello there, mister ', Hub::getname( $0 ), "\n";
use Hub ':standard';
print 'Excuse me, mister', getname( $0 ), "\n";
In both cases, Hub::Data::File::getname(...)
is the implementing method.
DESCRIPTION
METHODS
callback | getns | mkinst | regns |
- callback
-
Usage: callback SUB
Main invocation method.
- getns
-
Usage: getns NAME, [ADDRESS]
Get namespace.
Intended for Hub library modules only.
- mkinst
-
Usage: mkinst SHORTNAME
Create an instance (object) by its short name.
See also hubuse.
This example returns: true:
ref( mkinst( 'Logger' ) ) eq 'Hub::Base::Logger';
This example returns: abort:
mkinst( 'DoesNotExist' );
- regns
-
Usage: regns NAME, [VALUE]
Register namespace.
Intended for Hub library modules only.>
INTERNAL
END | _load_external_libs | _sigwarn |
_findmodules | _load_internal_libs | _tagname |
- END
-
Usage: END
Finish library wheel.
- _findmodules
-
Usage: _findmodules DIRECTORY, PACKAGENAME
Searches in the sub-directory of this top-level-module for all library files to represent.
Recursive.
- _load_external_libs
-
Load external modules.
Share minimal list of standard functions which every module in its right mind would use.
- _load_internal_libs
-
Usage: _load_internal_libs
We want to import all EXPORT_OK methods from packages.
- _tagname
-
Usage: _tagname MODULENAME
Control which EXPORT_TAGS tag is used depending on module location.
AUTHOR
Ryan Gies
COPYRIGHT
Copyright (c) 2006 Livesite Networks, LLC. All rights reserved.
Copyright (c) 2000-2005 Ryan Gies. All rights reserved.
UPDATED
This file created by on at