GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

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

Dpkg::Interface::Storable - common methods related to object serialization

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().

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).

$obj->load($filename, %opts)
Initialize the object with the data stored in the file. The file can be compressed, it will be decompressed on the fly by using a Dpkg::Compression::FileHandle object. If $opts{compression} is false the decompression support will be disabled. If $filename is "-", then the standard input is read (no compression is allowed in that case).
$obj->save($filename, %opts)
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 $opts{compression} is false the compression support will be disabled. If $filename is "-", then the standard output is used (data are written uncompressed in that case).
"$obj"
Return a string representation of the object.

New options: The $obj->load() and $obj->save() methods support a new compression option.

Mark the module as public.
2019-04-19 1.19.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.