Hi Johan,
A couple of questions:
1) Why is this better than using Data::Dumper for saving config info?
Is it so that you can hand-edit the config files? Do you know about
YAML, on CPAN?
2) Is it appropriate to use the Config namespace, since the Config.pm
module is a pretty different beast?
-Ken
On Monday, March 4, 2002, at 03:03 PM, Johan Vromans wrote:
> On CPAN there's a module Config::Properties that lets you make config
> files with properties like
>
> foo.bar=blech
> foo.bar.boz=blah
> foo.bar.buzz=bly
>
> I have an alternative module that lets you extend this like
>
> foo {
> bar = blech
> bar.boz = blah
> bar.buzz = bly
> }
>
> and so on. Nesting is unlimited.
>
> Main accessor is a config routine:
>
> config("foo","bar")
>
> would return "blech" using the above examples.
> When called in list context, it returns ("boz","buzz"), a list with
> all subkeys of "bar" in the order they appeared in the file.
>
> Would this module provide appreciated functionality?
> How should it be called?
>
> -- Johan
>
>
>
>
-Ken