<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:root@localhost" /> </head> <body style="background-color: white"> <ul id="index"> <li><a href="#NAME">NAME</a></li> <li><a href="#DESCRIPTION">DESCRIPTION</a></li> <li><a href="#SYNOPSIS">SYNOPSIS</a></li> <li><a href="#CONSTRUCTOR">CONSTRUCTOR</a></li> <li><a href="#METHODS">METHODS</a></li> </ul> <h1 id="NAME">NAME</h1> <dl> <dt id="PERL">PERL</dt> <dd> <p>Libconf::Glueconf::Generic::ValuesSection</p> </dd> <dt id="C-PYTHON-RUBY">C/PYTHON/RUBY</dt> <dd> <p>Generic/ValuesSection</p> </dd> </dl> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p>Libconf::Glueconf::Generic::ValuesSection is a generic template that handles config files that contain semantic informations of type : (KEY - VALUE) and SECTION.</p> <h1 id="SYNOPSIS">SYNOPSIS</h1> <pre><code> $samba = new Libconf::Glueconf::Generic::ValuesSection({ filename => '/etc/samba/smb.conf' separator_char => '=', allow_space => 1, handle_quote => 0, handle_multiples_lines => 0, section_regexp => '^\s*\[([^\]]+)\]\s*$', section_output_function => sub { "[$_[0]]" }, has_endsection => 0, endsection_regexp => '', endsection_output_function => '', }); $samba->write_conf();</code></pre> <h1 id="CONSTRUCTOR">CONSTRUCTOR</h1> <dl> <dt id="new-options"><b>new($options)</b></dt> <dd> <p>creates the template</p> <pre><code> $template = new Libconf::Glueconf::Generic::ValuesSection({ .. options .. })</code></pre> <p>the options are the same as in <a>Libconf::Templates::Generic::KeyValueSections</a>, look there for details.</p> </dd> </dl> <h1 id="METHODS">METHODS</h1> <p>See <Libconf::Glueconf> for general methods</p> </body> </html>