ConfigReader
view release on metacpan or search on metacpan
There is one point of terminology in the documentation which I
now realize is confusing. The config file parser class specifies the
syntax of how directives and values are written in the config file:
Verbose yes
Verbose=yes
{Verbose => 'yes'}
The programmer can create a "parsing function or method", which
converts a string representation into a Perl value (or object). This
code can than be used transparently with any of the file parsing
classes.
sub yes_no {
my ($val) = @_;
if ($val =~ m/^y/i) {
return 1;
} else {
return 0;
}
}
( run in 0.464 second using v1.01-cache-2.11-cpan-0a6323c29d9 )