App-Modular
view release on metacpan or search on metacpan
lib/App/Modular/Module.pm view on Meta::CPAN
#!/usr/bin/perl
#----------------------------------------------------------------------------
# App::Modular - perl program modularization framewok
# App::Modular/module.pm: base class for all modules
#
# Copyright (c) 2003-2004 Baltasar Cevc
#
# This code is released under the L<perlartistic> Perl Artistic
# License, which can should be accessible via the C<perldoc
# perlartistic> command and the file COPYING provided with this
#
# DISCLAIMER: THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
# COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY
# OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE
# OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
# TRADEMARKS OR OTHER RIGHTS.
# IF YOU USE THIS SOFTWARE, YOU DO SO AT YOUR OWN RISK.
#
# See this internet site for more details: http://technik.juz-kirchheim.de/
#
# Creation: 02.12.03 bc
# Last Update: 06.04.08 bc
# Version: 0. 1. 3
# ----------------------------------------------------------------------------
###################
### ###
### "PREFIX" ###
### ###
###################
###################
# Pragma #
###################
use strict;
use warnings;
use 5.006_001;
###################
# Module #
###################
package App::Modular::Module;
use vars qw($VERSION);
$VERSION=0.001_003;
###################
### ###
### MENTHODS ###
### ###
###################
sub module_init {
my $self = {};
my $type = shift;
$self->{'module_name'} = $type;
substr $self->{'module_name'}, 0,
length ("App::Modular::module::"), ''
if ( (index $self->{'module_name'}, "App::Modular::Module::") == 0);
$self->{'modularizer'} = App::Modular->instance();
$self->{'modularizer'}->mlog (99, "module $self->{'module_name'}:".
" blessed myself!");
return bless $self, $type;
};
( run in 0.956 second using v1.01-cache-2.11-cpan-df04353d9ac )