Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > a918147e816a04e85f8654f72077e879 > files > 69

perl-Libconf-0.42.10-6.mga4.x86_64.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></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 =&gt; &#39;/etc/samba/smb.conf&#39;
                                                          separator_char =&gt; &#39;=&#39;,
                                                          allow_space =&gt; 1,
                                                          handle_quote =&gt; 0,
                                                          handle_multiples_lines =&gt; 0,
                                                          section_regexp =&gt; &#39;^\s*\[([^\]]+)\]\s*$&#39;,
                                                          section_output_function =&gt; sub { &quot;[$_[0]]&quot; },
                                                          has_endsection =&gt; 0,
                                                          endsection_regexp =&gt; &#39;&#39;,
                                                          endsection_output_function =&gt; &#39;&#39;,
                                                         });
 $samba-&gt;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 &lt;Libconf::Glueconf&gt; for general methods</p>


</body>

</html>