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


Manual Reference Pages  -  DPKG::CONF (3)

.ds Aq ’

NAME

Dpkg::Conf - parse dpkg configuration files

CONTENTS

DESCRIPTION

The Dpkg::Conf object can be used to read options from a configuration file. It can exports an array that can then be parsed exactly like @ARGV.

METHODS

$conf = Dpkg::Conf->new(%opts) Create a new Dpkg::Conf object. Some options can be set through %opts: if allow_short evaluates to true (it defaults to false), then short options are allowed in the configuration file, they should be prepended with a single hyphen.
@$conf
@options = $conf->get_options() Returns the list of options that can be parsed like @ARGV.
$conf->load($file) Read options from a file. Return the number of options parsed.
$conf->parse($fh) Parse options from a file handle. Return the number of options parsed.
$conf->filter(remove => $rmfunc)
$conf->filter(keep => $keepfunc) Filter the list of options, either removing or keeping all those that return true when &$rmfunc($option) or &keepfunc($option) is called.
$string = $conf->output($fh) Write the options in the given filehandle (if defined) and return a string representation of the content (that would be) written.
‘‘$conf’’ Return a string representation of the content.
$conf->save($file) Save the options in a file.

CHANGES

    Version 1.01 (dpkg 1.15.8)

New method: $conf->filter()

    Version 1.00 (dpkg 1.15.6)

Mark the module as public.

AUTHOR

RaphaŽl Hertzog <hertzog@debian.org>.
Search for    or go to Top of page |  Section 3 |  Main Index


1.18.4 DPKG::CONF (3) 2015-11-26

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