Sphinx::Config is a Sphinx search engine configuration file read/modify/write.
SYNOPSIS
use Sphinx::Config;
my $c = Sphinx::Config->new();
$c->parse($filename);
$path = $c->get('index', 'test1', 'path');
$c->set('index', 'test1', 'path', $path);
$c->save($filename);
...
CONSTRUCTOR
new
c = Sphinx::Config->new;
preserve_inheritance
c->preserve_inheritance(0);
c->preserve_inheritance(1);
pi = $c->preserve_inheritance(1);
Set/get the current behaviour for preserving inherited values. When set to a non-zero value (the default), if a value is set in a parent section, then it is automatically inherited by any child sections, and when the configuration file is saved, values that are implicit through inheritance are not shown. When set to zero, each section is considered standalone and a complete set of values is shown in the saved file.
This flag may be enabled and disabled selectively for calls to set() and save().
Product's homepage
Requirements:
· Perl