Xango::Config - Global Xango Config
use Xango::Config; Xango::Config->init($filename); # or use Xango::Config ($filename); # elsewhere in the code... my $config = Xango::Config->instance();
Xango::Config is a singleton object that contains all configuration variables for Xango system. It's a singleton that reads input files from a YAML file.
All the variables specified in the file is available from the param() method as Perl data structures.
Class method that initializes the config with the contents in the YAML file. Once initialized, subsequent calls to init() has no effect unless force_reload is specified in the options hash:
Xango::Config->init($file, { force_reload => 1 });
Returns the current instance of Xango::Config. will return undef unless you have initialized the instance by calling init().
Get/Set the value of a config variable. Returns whatever Perl structure that you have specified in the config file.
Since Xango::Config is an You may use param() as both a class method or an instance method
Copyright (c) 2005 Daisuke Maki <dmaki@cpan.org> Development funded by Brazil, Ltd. <http://b.razil.jp>
To install Xango, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Xango
CPAN shell
perl -MCPAN -e shell install Xango
For more information on module installation, please visit the detailed CPAN module installation guide.