{
    "mode": "perldoc",
    "parameter": "Dpkg::Changelog::Parse",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3AChangelog%3A%3AParse/json",
    "generated": "2026-06-13T02:53:52Z",
    "sections": {
        "NAME": {
            "content": "Dpkg::Changelog::Parse - generic changelog parser for dpkg-parsechangelog\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provides a set of functions which reproduce all the features of dpkg-parsechangelog.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "$fields = changelogparse(%opt)\nThis function will parse a changelog. In list context, it returns as many Dpkg::Control\nobjects as the parser did create. In scalar context, it will return only the first one. If\nthe parser did not return any data, it will return an empty list in list context or undef on\nscalar context. If the parser failed, it will die. Any parse errors will be printed as\nwarnings on standard error, but this can be disabled by passing $opt{verbose} to 0.\n\nThe changelog file that is parsed is debian/changelog by default but it can be overridden\nwith $opt{file}. The changelog name used in output messages can be specified with\n$opt{label}, otherwise it will default to $opt{file}. The default output format is \"dpkg\"\nbut it can be overridden with $opt{format}.\n\nThe parsing itself is done by a parser module (searched in the standard perl library\ndirectories. That module is named according to the format that it is able to parse, with the\nname capitalized. By default it is either Dpkg::Changelog::Debian (from the \"debian\" format)\nor the format name looked up in the 40 last lines of the changelog itself (extracted with\nthis perl regular expression \"\\schangelog-format:\\s+([0-9a-z]+)\\W\"). But it can be\noverridden with $opt{changelogformat}.\n\nIf $opt{compression} is false, the file will be loaded without compression support,\notherwise by default compression support is disabled if the file is the default.\n\nAll the other keys in %opt are forwarded to the parser module constructor.\n",
            "subsections": []
        },
        "CHANGES": {
            "content": "Version 2.01 (dpkg 1.20.6)\nNew option: 'verbose' in changelogparse().\n\nVersion 2.00 (dpkg 1.20.0)\nRemove functions: changelogparsedebian(), changelogparseplugin().\n\nRemove warnings: For options 'forceplugin', 'libdir'.\n\nVersion 1.03 (dpkg 1.19.0)\nNew option: 'compression' in changelogparse().\n\nVersion 1.02 (dpkg 1.18.8)\nDeprecated functions: changelogparsedebian(), changelogparseplugin().\n\nObsolete options: forceplugin, libdir.\n\nVersion 1.01 (dpkg 1.18.2)\nNew functions: changelogparsedebian(), changelogparseplugin().\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
            "subsections": []
        }
    },
    "summary": "Dpkg::Changelog::Parse - generic changelog parser for dpkg-parsechangelog",
    "flags": [],
    "examples": [],
    "see_also": []
}