Dpkg::Control - parse files like debian/control
It provides an object to access data of files that follow the same syntax than debian/control.
Create a new Dpkg::Control object for $file. If $file is omitted, it parses debian/control.
Resets what got read.
Parse the content of $file. Exits in case of errors.
Returns a reference to a hash containing the fields concerning the source package. The hash is tied to Dpkg::Fields::Object.
Returns a reference to a hash containing the fields concerning the binary package numbered $idx (starting at 1). The hash is tied to Dpkg::Fields::Object.
Returns a reference to a hash containing the fields concerning the binary package named $name. The hash is tied to Dpkg::Fields::Object.
Returns a list containing the hashes for all binary packages.
Dump the content into a filehandle.
Raphael Hertzog <hertzog@debian.org>.