Dpkg::Source::Format - manipulate debian/source/format files
This module provides a class that can manipulate Debian source package debian/source/format files.
Creates a new object corresponding to a source package's debian/source/format file. When the key filename is set, it will be used to parse and set the format. Otherwise if the format key is set it will be validated and used to set the format.
Sets the source format from its parts. The $major part is mandatory. The $minor and $variant parts are optional.
Notice: This function performs no validation.
Sets (and validates) the source $format specified. Will return the parsed format parts as a list, the optional $minor and $variant parts might be undef.
Gets the source format, either as properly formatted scalar, or as a list of its parts, where the optional $minor and $variant parts might be undef.
Parse the source format string from $fh, with filehandle description $desc.
Parse $filename contents for a source package format string.
Returns a string representing the source package format version. If $fh is set, it prints the string to the filehandle.
Save the source package format into the given $filename.
Mark the module as public.
To install Dpkg, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dpkg
CPAN shell
perl -MCPAN -e shell install Dpkg
For more information on module installation, please visit the detailed CPAN module installation guide.