{
    "mode": "perldoc",
    "parameter": "Dpkg::Control::Info",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3AControl%3A%3AInfo/json",
    "generated": "2026-06-12T21:03:22Z",
    "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": []
        }
    },
    "summary": "Dpkg::Control::Info - parse files like debian/control",
    "flags": [],
    "examples": [],
    "see_also": []
}