{
    "content": [
        {
            "type": "text",
            "text": "# Dpkg::Control::Info (perldoc)\n\n## NAME\n\nDpkg::Control::Info - parse files like debian/control\n\n## DESCRIPTION\n\nIt provides a class to access data of files that follow the same syntax as debian/control.\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::Control::Info",
        "section": "",
        "mode": "perldoc",
        "summary": "Dpkg::Control::Info - parse files like debian/control",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 44,
                "subsections": []
            },
            {
                "name": "CHANGES",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Dpkg::Control::Info - parse files like debian/control\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "It provides a class to access data of files that follow the same syntax as debian/control.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "$c = Dpkg::Control::Info->new(%opts)\nCreate a new Dpkg::Control::Info object. Loads the file from the filename option, if no\noption is specified filename defaults to debian/control. If a scalar is passed instead, it\nwill be used as the filename. If filename is \"-\", it parses the standard input. If filename\nis undef no loading will be performed.\n\n$c->reset()\nResets what got read.\n\n$c->parse($fh, $description)\nParse a control file from the given filehandle. Exits in case of errors. $description is\nused to describe the filehandle, ideally it's a filename or a description of where the data\ncomes from. It is used in error messages. The data in the object is reset before parsing new\ncontrol files.\n\n$c->load($file)\nLoad the content of $file. Exits in case of errors. If file is \"-\", it loads from the\nstandard input.\n\n$c->[0]\n$c->getsource()\nReturns a Dpkg::Control object containing the fields concerning the source package.\n\n$c->getpkgbyidx($idx)\nReturns a Dpkg::Control object containing the fields concerning the binary package numbered\n$idx (starting at 1).\n\n$c->getpkgbyname($name)\nReturns a Dpkg::Control object containing the fields concerning the binary package named\n$name.\n\n$c->getpackages()\nReturns a list containing the Dpkg::Control objects for all binary packages.\n\n$str = $c->output([$fh])\nReturn the content info into a string. If $fh is specified print it into the filehandle.\n\n\"$c\"\nReturn a string representation of the content.\n\n@{$c}\nReturn a list of Dpkg::Control objects, the first one is corresponding to source information\nand the following ones are the binary packages information.\n",
                "subsections": []
            },
            "CHANGES": {
                "content": "Version 1.01 (dpkg 1.18.0)\nNew argument: The $c->new() constructor accepts an %opts argument.\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
                "subsections": []
            }
        }
    }
}