Cupt::Config(3) store and retrieve APT-style config variables

METHODS

new

creates a new Cupt::Config object

clone

method, returns a copy of the object

get_scalar_option_names

method, returns the array of the scalar options' names

get_list_option_names

method, returns the array of the list options' names

get_string

method, returns the value of the string config option, may be undef if the option is not set

Parameters:

option_name - the name of the option, string

get_number

method, returns the value of the number config option, may be undef if the option is not set

Parameters:

option_name - the name of the option, string

get_bool

method, returns the value of the boolean config option, may be undef if the option is not set

Parameters:

option_name - the name of the option, string

get_list

method, returns the array of the values of the list config option

Parameters:

option_name - the name of the option, string

set_scalar

method, sets scalar option option_name to option_value

Parameters:

option_name - string option name to set

option_value - desired value

Returns: true on success, false on fail.

set_list

method, adds a option_value to a list option option_name

Parameters:

option_name - string option name to advance

option_value - value to add

Returns: true on success, false on fail.