Cupt::Config(3pm)

Cupt::Config3pm

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.

From libcupt-perl 1.5.14.1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.