in reply to Parsing a hash of hashes using a schema file
I would investigate Data::Schema::Type::Hash
I would investigate Data::Sah
Or even Config::Model / config-edit#-ui
Or Data::Domain - Data description and validation
Or Data::Validate::Struct - Validate recursive Hash Structures
At the very least you'll get ideas on how to structure your validator, whether you use Data::Diver or How can I visualize my complex data structure?, Re: How to find all occurrences of a key in a deeply nested structure? or using Data::Walk, Data::Visitor::Callback
If I were versed in XML schemas I'd investigate XML::Compile/http://perl.overmeer.net/xml-compile/#doc
So now you have some avenues of research, they all look like work to me, but maybe some look like less work than others
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing a hash of hashes using a schema file
by NewLondonPerl1 (Acolyte) on Apr 02, 2013 at 02:04 UTC | |
by NewLondonPerl1 (Acolyte) on Apr 02, 2013 at 02:59 UTC | |
by marto (Cardinal) on Apr 02, 2013 at 06:24 UTC | |
by Anonymous Monk on Apr 02, 2013 at 07:40 UTC |