Config::DB::Table - DataBase Configuration Table module
use Config::DB; my $cfg = Config::DB->new( connect => \@params, tables => \%tables ); my $table = $cfg->get( 'table1' );
This module is used by Config::DB to rapresentate a table.
It returns a configuration value or a configuration record. Parameter $key_value identifies the requested record; without $field_name parameter a Config::DB:Record object is returned, if provided the method returns the value of that field as a SCALAR. It dies on missing key value or missing field.
A quicker syntax is offered: following calls are identical...
my $rec1 = $table->get( 1 ); my $rec1 = $table->_1;
... following calls are identical as well.
my $value2 = $table->get( 2 'field2' ); my $value2 = $table->_2( 'field2' );
0.2
To install Config::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::DB
CPAN shell
perl -MCPAN -e shell install Config::DB
For more information on module installation, please visit the detailed CPAN module installation guide.