NAME

Libconf::Templates::Group - Libconf low level template for group file styles config files


DESCRIPTION

Libconf::Templates::Group is a template that handles files that contain informations like the ones in /etc/group, with lines like :

 group_name:passwd:GID:user_list


SYNOPSIS

 $template = new Libconf::Templates::Group({
                                            filename => 'group',
                                           });
 $template->read_conf();
 $template->edit_atom(-1, { key => 'daemon',
                            values => { passwd => 'xtest',
                                        GID => '000456',
                                        user_list => 'root2,bin2,daemon2',
                                      },
                          });
 ...
 (see L<Libconf::Templates> for transformation methods on $template)
 ...
 $template->write_conf('group_output_2');


CONSTRUCTOR

new($options)

creates the template

  $template = new Libconf::Templates::Group({
                                              filename => 'some_file',
                                            })

arguments

$options [type : HASH_REF] specifies the options to create the new template instance.

options

filename [type : STRING, default : ''] : the filename of the config file you want to work on. Can be read and written lately by using set_filename and get_filename.


GENERAL METHODS

See the Libconf::Templates manpage for the general list of methods you can call on this template.


SPECIFIC METHODS

There is no specific methods