NAME
GSM::SMS::Config - Implements a simple .ini style config.
DESCRIPTION
Implements a simple configuration format. Used mainly for the transports config file.
The configuration format is defined as follows
^# := comment
^[.+]$ := start block
^.+=.+$ := var, value pair
The structure allows attribute (configuration) access as follows
$_preferences->{$blockname}->{$var}=$value
$blockname = ( 'default', <blocknames> }
METHODS
- new - The constructor
-
my $cfg = GSM::SMS::Config->new( -file => $config_file, # Optional otherwise take default config -check => 1 # Optional, does a sanity check );
- setup - run the setup script
- save_default - save this configuration as the default
- read_config - read a configuration file
- is_sane - check if a configuration complies with some rules
- get_section_names - Get an array of all the section names
- get_config - get a specific config file section
-
$config->get_config( 'default' ); $config->get_config( 'Serial01' );
- get_value - get the config value for that section
-
$value = $config->get_value($section, $name);
AUTHOR
Johan Van den Brande johan@vandenbrande.com>
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 221:
You forgot a '=back' before '=head1'