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

  • Comment on Re: Parsing a hash of hashes using a schema file

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

    Thanks alot for you help. I will take a look at all of these now.

      I have looked at all of these modules but unfortunately we dont have any of these installed :-(

        I have looked at all of these modules but unfortunately we dont have any of these installed :-(

        You can always view the source code at the links I provided. Maybe you want to check the other links that don't link to modules, they have code as well.

        :) Oh, and btw, how did you install perlmonks?