CGI-Application-Plugin-Config-General
view release on metacpan or search on metacpan
lib/CGI/Application/Plugin/Config/General.pm view on Meta::CPAN
use warnings;
use strict;
require 5.006;
use base 'Exporter';
use CGI::Application;
use Config::General::Match;
use Carp;
use File::Spec;
use Scalar::Util qw(weaken isweak);
use Cwd;
use vars '@EXPORT';
@EXPORT = qw(conf);
our $CGIAPP_Namespace = '__CONFIG_GENERAL';
=head1 NAME
CGI::Application::Plugin::Config::General - Add Config::General Support to CGI::Application
lib/CGI/Application/Plugin/Config/General.pm view on Meta::CPAN
'__CALLERS_PACKAGE' => $package,
'__CGIAPP_OBJ' => $webapp,
'__CONFIG' => undef,
'__CONFIG_OBJ' => undef,
'__CONFIG_OBJ_CREATED' => undef,
'__CONFIG' => undef,
};
# Force reference to CGI::Applcation object to be weak to avoid
# circular references
weaken($self->{'__CGIAPP_OBJ'});
return bless $self, $class;
}
=head2 init
Initializes the plugin. The only required parameter is a config file:
$self->conf->init(
-ConfigFile => 'app.conf',
( run in 0.620 second using v1.01-cache-2.11-cpan-65fba6d93b7 )