Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > d1bd68ea67b363532151ebe62cd98305 > files > 70

perl-Libconf-0.42.10-3.mga1.i586.rpm

<?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>ValuesSection.pm</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">


<!-- INDEX BEGIN -->
<div name="index">
<p><a name="__index__"></a></p>

<ul>

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

<hr name="index" />
</div>
<!-- INDEX END -->

<p>
</p>
<h1><a name="name">NAME</a></h1>
<dl>
<dt><strong><a name="perl" class="item">PERL</a></strong></dt>

<dd>
<p>Libconf::Glueconf::Generic::ValuesSection</p>
</dd>
<dt><strong><a name="c_" class="item">C/PYTHON/RUBY</a></strong></dt>

<dd>
<p>Generic/ValuesSection</p>
</dd>
</dl>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></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>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
 $samba = new Libconf::Glueconf::Generic::ValuesSection({
                                                          filename =&gt; '/etc/samba/smb.conf'
                                                          separator_char =&gt; '=',
                                                          allow_space =&gt; 1,
                                                          handle_quote =&gt; 0,
                                                          handle_multiples_lines =&gt; 0,
                                                          section_regexp =&gt; '^\s*\[([^\]]+)\]\s*$',
                                                          section_output_function =&gt; sub { &quot;[$_[0]]&quot; },
                                                          has_endsection =&gt; 0,
                                                          endsection_regexp =&gt; '',
                                                          endsection_output_function =&gt; '',
                                                         });
 $samba-&gt;write_conf();</pre>
<p>
</p>
<hr />
<h1><a name="constructor">CONSTRUCTOR</a></h1>
<dl>
<dt><strong><a name="new" class="item"><strong>new($options)</strong></a></strong></dt>

<dd>
<p>creates the template</p>
<pre>
  $template = new Libconf::Glueconf::Generic::ValuesSection({
                                                           .. options .. 
                                                           })</pre>
<p>the options are the same as in <a href="./Libconf/Templates/Generic/KeyValueSections.html">the Libconf::Templates::Generic::KeyValueSections manpage</a>, look
there for details.</p>
</dd>
</dl>
<p>
</p>
<hr />
<h1><a name="methods">METHODS</a></h1>
<p>See &lt;Libconf::Glueconf&gt; for general methods</p>

</body>

</html>