You need to check out Parse:: modules such as :
| MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!" | | I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README). | | ** The third rule of perl club is a statement of fact: pod is sexy. |
| [reply] |
Your description leaves a lot to be desired, since I (and likely others) are unfamiliar with Autosys JIL files. Without a more detailed explanation of your input data, I can only suggest some combination of regex and/or custom validation modules will suffice. Perhaps if you could show some example data we could give a better analysis.
| [reply] |
I think PodMaster is pointing you in the right direction.
This is a textbook example of needing to write a "little language" and using a parser for validation.
In order to use the modules he suggests you will need to know how to write a grammar. Hence, are going to need to get a hangle on BNF (Backus-Naur Form). I would suggest you do a google search on "bnf tutorials". You might have some luck there. You can also look at compilers and format automata resources.
davidj | [reply] |