---
name: "Cupt::Config"
section: "3pm"
platform: "linux"
package: "libcupt-perl"
version: "1.5.14.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Cupt::Config"
---

# Cupt::Config(3pm)

store and retrieve APT-style config variables

## NAME

Cupt::Config - 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.
