App-Glacier
view release on metacpan or search on metacpan
lib/App/Glacier/Config.pm view on Meta::CPAN
a particular configuration setting. The function is called as
&{$coderef}($vref, @path)
where $vref is a reference to the setting (use $vref->{-value}, to obtain
the actual value), and @path is its patname.
=item check => I<coderef>
Defines a code which will be called after parsing the statement in order to
verify its value. The I<coderef> is called as
$err = &{$coderef}($valref, $prev_value)
where B<$valref> is a reference to its value, and B<$prev_value> is the value
of the previous instance of this setting. The function must return B<undef>
if the value is OK for that setting. In that case, it is allowed to modify
the value, referenced by B<$varlref>. If the value is erroneous, the function
must return a textual error message, which will be printed using B<$cfg->error>.
=back
( run in 0.717 second using v1.01-cache-2.11-cpan-73692580452 )