App::Modular::Module - App::Modular module base class.
#!/usr/bin/perl -w use strict; package App::Modular::Module::Dummy; use modularizer; use base qw(App::Modular::Module); # a complete do-noting module :-) 1;
See App::Modular (secction 'usage') for an example.
This class should be used as a base class for every modularizer module. It provides some base methods to cleanly initialize and destroy the module. Every
See the examples in the documentation of App::Modular for details.
In this section I will describe the standard methods that every single module inheritfs from the master module. The standard aparameters are described, too.
Every module that @IS-A App::Modular::Module will be a blessed hash reference. In this hash, you will find some default data, too.
Initialize a module (and create a blessed object for it).
Return value: (ref) reference to the module object
Returns the internal module name.
Return value: (string) name of the current module
Returns the reference to the modularizer object.
Return value: (ref) instance of App::Module
The standard destructor for modules (log the destruction, no other action taken).
Returns the module dependencies (none by default).
Return value: (array of strings) names of the modules I depend on
(c) 2004 Baltasar Cevc
This code is released under the perlartistic Perl Artistic License, which can should be accessible via the perldoc perlartistic command and the file COPYING provided with this package.
perldoc perlartistic
App::Modular.pm(3pm)
To install App::Modular, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Modular
CPAN shell
perl -MCPAN -e shell install App::Modular
For more information on module installation, please visit the detailed CPAN module installation guide.