Config...nclude(3pm)
β¨ Config::Model::Value::LayeredInclude β the manual page, bestie edition β¨
okay so this is Config...nclude(3pm) from the User Contributed Perl Documentation, and it's literally about including a sub layer configuration, and honestly? it's giving niche but iconic π
let's get into it
π NAME π
Config::Model::Value::LayeredInclude β include a sub layer configuration π«Ά
πΈ VERSION πΈ
version 2.166 β¨ (yes ma'am, we're on 2.166)
π SYNOPSIS π
okay so here's how you show up in a model declaration, no cap:
# in a model declaration:
'element' => [
'include' => {
'class' => 'Config::Model::Value::LayeredInclude',
# usual Config::Model::Value parameters
'type' => 'leaf',
'value_type' => 'uniline',
'convert' => 'lc',
'summary' => 'Include file for cascaded configuration',
'description' => 'To support multiple variants of ...'
},
]
π¦ DESCRIPTION π¦
So this class inherits from Config::Model::Value β like, it's the child of that class, it carries the family name π β and what it does is it overrides _store so that when a value gets changed, it triggers a refresh of the layered value. Translation: changing this value triggers a reload of the referred configuration file, and the values from that file are used as the default value. bestie that's the whole vibe.
This class was designed to cope with late multistrap configuration. periodt.
β οΈ CAUTION β οΈ (read this fr fr)
A configuration file can support 2 kinds of include, and you need to know which one you're in:
- Layered include β this one sets default values, like the default values for
sshconfiguration. These includes are read-only π« - Real includes β like
"apache". In these cases, modified configuration items can be written to the included files.
π¨ and here's the tea: this class works only with the first type. Only layered includes. If you're out here expecting real includes from this class, you're gonna have a bad time π
π AUTHOR π
Dominique Dumont π (iconic behavior, honestly)
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2005-2022 by Dominique Dumont.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
and that's the whole page, bestie π this was Config...nclude(3pm) as shipped with perl v5.42.3, dated 2026-07-23 β thanks for reading, mwah πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: libconfig-model-perl 2.166-1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms