CTK::Plugin::Config - Configuration plugin
Version 1.00
use CTK; use CTK::ConfGenUtil; my $ctk = new CTK( plugins => "config", configfile => "test.conf", root => ".", confopts => {... Config::General options ...}, ); print $ctk->config("foo"); print value($ctk->config(), "myinc/Test/val2")
Configuration plugin
Specifies absolute or relative path to config-file
See "config" in CTK::Configuration
Options of Config::General
Specifies absolute or relative path to config-dir. Root dir of project
See CTK::Configuration and "root" in CTK
my $value = $ctk->conf("key");
Returns config value by key
See "get" in CTK::Configuration
my $value = $ctk->config("key");
my $config = $ctk->config();
Returns config-structure as hash-ref
See "conf" in CTK::Configuration
die $ctk->configobj->error unless $ctk->configobj->status;
Returns config-object
Initializer method. Internal use only
See Changes file
Changes
CTK, CTK::Plugin, CTK::Configuration
See TODO file
TODO
* none noted
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE file and https://dev.perl.org/licenses/
LICENSE
To install CTK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CTK
CPAN shell
perl -MCPAN -e shell install CTK
For more information on module installation, please visit the detailed CPAN module installation guide.