1Config::Model::Backend:U:sSehrelCloVnatrr(i3b)uted PerlCDooncfuimge:n:tMaotdieoln::Backend::ShellVar(3)
2
3
4

NAME

6       Config::Model::Backend::Shellvar - Read and write config as a SHELLVAR
7       data structure
8

VERSION

10       version 1.205
11

SYNOPSIS

13         # model declaration
14         name => 'FooConfig',
15
16         read_config  => [
17                           { backend => 'shellvar' ,
18                             config_dir => '/etc/foo',
19                             file  => 'foo.conf',      # optional
20                             auto_create => 1,         # optional
21                           }
22                         ],
23
24          element => ...
25         ) ;
26

DESCRIPTION

28       This module is used directly by Config::Model to read or write the
29       content of a configuration tree written with SHELLVAR syntax in
30       "Config::Model" configuration tree.
31
32       Note that undefined values are skipped for list element. I.e. if a list
33       element contains "('a',undef,'b')", the data structure will contain
34       'a','b'.
35

CONSTRUCTOR

37   new ( node => $node_obj, name => 'shellvar' ) ;
38       Inherited from Config::Model::Backend::Any. The constructor will be
39       called by Config::Model::AutoRead.
40
41   read ( io_handle => ... )
42       Of all parameters passed to this read call-back, only "io_handle" is
43       used. This parameter must be IO::File object already opened for read.
44
45       It can also be undef. In this case, "read()" will return 0.
46
47       When a file is read,  "read()" will return 1.
48
49   write ( io_handle => ... )
50       Of all parameters passed to this write call-back, only "io_handle" is
51       used. This parameter must be IO::File object alwritey opened for write.
52
53       "write()" will return 1.
54

AUTHOR

56       Dominique Dumont, (ddumont at cpan dot org)
57

SEE ALSO

59       Config::Model, Config::Model::AutoRead, Config::Model::Backend::Any,
60
61
62
63perl v5.12.1                      2010-08-18Config::Model::Backend::ShellVar(3)
Impressum