Config::DB::Record - DataBase Configuration Record module
use Config::DB; my $cfg = Config::DB->new( connect => \@params, tables => \%tables ); my $rec = $cfg->get( 'table1', 1 );
This module is used by Config::DB to rapresentate a record.
It returns a configuration value. Parameter $field_name is the name of the requested field. It dies on missing key value or missing field.
A quicker syntax is offered: following calls are identical...
my $value1 = $rec->get( 'field1' ); my $value1 = $rec->_field1;
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.