Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpkg::interface::storable(3) [linux man page]

Dpkg::Interface::Storable(3)					   libdpkg-perl 				      Dpkg::Interface::Storable(3)

NAME
Dpkg::Interface::Storable - common methods related to object serialization DESCRIPTION
Dpkg::Interface::Storable is only meant to be used as parent class for other objects. It provides common methods that are all implemented on top of two basic methods parse() and output(). BASE METHODS
Those methods must be provided by the object that wish to inherit from Dpkg::Interface::Storable so that the methods provided can work. $obj->parse($fh, $desc) This methods initialize the object with the data stored in the filehandle. $desc is optional and is a textual description of the filehandle used in error messages. $string = $obj->output($fh) This method returns a string representation of the object in $string and it writes the same string to $fh (if it's defined). PROVIDED METHODS
$obj->load($filename) Initialize the object with the data stored in the file. The file can be compressed, it will be uncompressed on the fly by using a Dpkg::Compression::FileHandle object. If $filename is "-", then the standard input is read (no compression is allowed in that case). $obj->save($filename) Store the object in the file. If the filename ends with a known compression extension, it will be compressed on the fly by using a Dpkg::Compression::FileHandle object. If $filename is "-", then the standard output is used (data are written uncompressed in that case). "$obj" Return a string representation of the object. AUTHOR
Raphael Hertzog <hertzog@debian.org>. 1.16.0.3 2012-04-17 Dpkg::Interface::Storable(3)

Check Out this Related Man Page

Dpkg::Control::Info(3)						   libdpkg-perl 					    Dpkg::Control::Info(3)

NAME
Dpkg::Control::Info - parse files like debian/control DESCRIPTION
It provides an object to access data of files that follow the same syntax as debian/control. FUNCTIONS
$c = Dpkg::Control::Info->new($file) Create a new Dpkg::Control::Info object for $file. If $file is omitted, it loads debian/control. If file is "-", it parses the standard input. $c->reset() Resets what got read. $c->load($file) Load the content of $file. Exits in case of errors. If file is "-", it loads from the standard input. $c->parse($fh, $description) Parse a control file from the given filehandle. Exits in case of errors. $description is used to describe the filehandle, ideally it's a filename or a description of where the data comes from. It's used in error messages. $c->[0] $c->get_source() Returns a Dpkg::Control object containing the fields concerning the source package. $c->get_pkg_by_idx($idx) Returns a Dpkg::Control object containing the fields concerning the binary package numbered $idx (starting at 1). $c->get_pkg_by_name($name) Returns a Dpkg::Control object containing the fields concerning the binary package named $name. $c->get_packages() Returns a list containing the Dpkg::Control objects for all binary packages. $c->output($filehandle) Dump the content into a filehandle. "$c" Return a string representation of the content. @{$c} Return a list of Dpkg::Control objects, the first one is corresponding to source information and the following ones are the binary packages information. AUTHOR
Raphael Hertzog <hertzog@debian.org>. 1.16.15 2014-06-05 Dpkg::Control::Info(3)
Man Page