Config-Model
view release on metacpan or search on metacpan
lib/Config/Model/Manual/ModelCreationAdvanced.pod view on Meta::CPAN
# etc ...
]
}
=head1 References
=head1 Computation and migrations
=head2 Cascaded warp
Config::Model also supports cascaded warps: A warped value is
dependent on another value which is itself a warped value.
=head1 Feedback welcome
Feel free to send comments and suggestion about this page at
config-model-users at lists dot sourceforge dot net.
=head1 AUTHORS
lib/Config/Model/Value.pm view on Meta::CPAN
},
'$c eq "Japan"' => {
choice => ['Honshu', 'Hokkaido' ]
}
}
}
}
=head2 Cascaded warping
Warping value can be cascaded: C<A> can be warped by C<B> which can be
warped by C<C>. But this feature should be avoided since it can lead
to a model very hard to debug. Bear in mind that:
=over
=item *
Warp loops are not detected and end up in "deep recursion
subroutine" failures.
lib/Config/Model/Value/LayeredInclude.pm view on Meta::CPAN
# 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 ...'
},
]
=head1 DESCRIPTION
This class inherits from L<Config::Model::Value>. It overrides
L<_store> to trigger a refresh of layered value when a value is
changed. I.e. changing this value trigger a reload of the referred
configuration file which values are used as default value. This class
( run in 3.377 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )