{
    "content": [
        {
            "type": "text",
            "text": "# Dpkg::Conf (perldoc)\n\n## NAME\n\nDpkg::Conf - parse dpkg configuration files\n\n## DESCRIPTION\n\nThe Dpkg::Conf object can be used to read options from a configuration file. It can export an\narray that can then be parsed exactly like @ARGV.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **METHODS**\n- **CHANGES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Dpkg::Conf",
        "section": "",
        "mode": "perldoc",
        "summary": "Dpkg::Conf - parse dpkg configuration files",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 48,
                "subsections": []
            },
            {
                "name": "CHANGES",
                "lines": 23,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Dpkg::Conf - parse dpkg configuration files\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The Dpkg::Conf object can be used to read options from a configuration file. It can export an\narray that can then be parsed exactly like @ARGV.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "$conf = Dpkg::Conf->new(%opts)\nCreate a new Dpkg::Conf object. Some options can be set through %opts: if allowshort\nevaluates to true (it defaults to false), then short options are allowed in the\nconfiguration file, they should be prepended with a single hyphen.\n\n@$conf\n@options = $conf->getoptions()\nReturns the list of options that can be parsed like @ARGV.\n\n$conf->load($file)\nRead options from a file. Return the number of options parsed.\n\n$conf->loadsystemconfig($file)\nRead options from a system configuration file.\n\nReturn the number of options parsed.\n\n$conf->loaduserconfig($file)\nRead options from a user configuration file. It will try to use the XDG directory, either\n$XDGCONFIGHOME/dpkg/ or $HOME/.config/dpkg/.\n\nReturn the number of options parsed.\n\n$conf->loadconfig($file)\nRead options from system and user configuration files.\n\nReturn the number of options parsed.\n\n$conf->parse($fh)\nParse options from a file handle. When called multiple times, the parsed options are\naccumulated.\n\nReturn the number of options parsed.\n\n$conf->filter(%opts)\nFilter the list of options, either removing or keeping all those that return true when\n$opts{remove}->($option) or $opts{keep}->($option) is called.\n\n$string = $conf->output([$fh])\nWrite the options in the given filehandle (if defined) and return a string representation of\nthe content (that would be) written.\n\n\"$conf\"\nReturn a string representation of the content.\n\n$conf->save($file)\nSave the options in a file.\n",
                "subsections": []
            },
            "CHANGES": {
                "content": "Version 1.04 (dpkg 1.20.0)\nRemove croak: For 'formatargv' in $conf->filter().\n\nRemove methods: $conf->get(), $conf->set().\n\nVersion 1.03 (dpkg 1.18.8)\nObsolete option: 'formatargv' in $conf->filter().\n\nObsolete methods: $conf->get(), $conf->set().\n\nNew methods: $conf->loadsystemconfig(), $conf->loadsystemuser(), $conf->loadconfig().\n\nVersion 1.02 (dpkg 1.18.5)\nNew option: Accept new option 'formatargv' in $conf->filter().\n\nNew methods: $conf->get(), $conf->set().\n\nVersion 1.01 (dpkg 1.15.8)\nNew method: $conf->filter()\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
                "subsections": []
            }
        }
    }
}