Do you know where your variables are? | |
PerlMonks |
Re: Ubiquity of the CGI param methodby LTjake (Prior) |
on Aug 11, 2010 at 01:14 UTC ( [id://854185]=note: print w/replies, xml ) | Need Help?? |
I *think* I see where you're going with this. Basically you want arbitrary data structure validation. Typically people call the "profile" for such validation, a schema. You'll see that term most frequently with XML data. In the Perl world, there are no doubt a number of tools that let you validate data against a schema. One such tool is Data-Rx (homepage). One particularly nice feature is that the author has also prepared implementations in other languages, so the same schema can be used against a number of different end-points. Sorry for not directly answering your question, but I would feel silly if I didn't mention this existing tool. --
In Section
Seekers of Perl Wisdom
|
|