Config::Model::Annotation - Read and write configuration annotations
version 1.225
my $arw = Config::Model::Annotation -> new ( config_class_name => $self->{root_class_name}, instance => $self , ) ; $arw->load; $arw->save;
This module provides an object that read and write annotations (a bit like comments) to and from a configuration tree.
Depending on the effective id of the process, the annotation will be saved in:
/var/lib/config-model/<model_name>-note.yml for root (EUID == 0)
/var/lib/config-model/<model_name>-note.yml
~/.config-model/<model_name>-note.yml for normal user (EUID > 0)
~/.config-model/<model_name>-note.yml
Quite standard. The constructor is passed a Config::Model::Instance object.
Save annotations in a file (See DESCRIPTION)
Loads annotations from a file (See DESCRIPTION)
Dominique Dumont, (ddumont at cpan dot org)
Config::Model, Config::Model::Node, Config::Model::Loader, Config::Model::Searcher, Config::Model::Value,
To install Config::Model, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Model
CPAN shell
perl -MCPAN -e shell install Config::Model
For more information on module installation, please visit the detailed CPAN module installation guide.