good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Writing an ODL parser?by dHarry (Abbot) |
on Jul 30, 2008 at 14:12 UTC ( [id://701140]=note: print w/replies, xml ) | Need Help?? |
Thanks for the effort! You might consider writing a parser which is just "good enough" for the files you want to process. Since structures seem to end on line boundaries, you can try something like this: ...Writing something just "good enough" was exactly my first approach:-) But now I want to improve and make it more generic. As you can read in my reply to moritz the values can be a bit tricky.
In Section
Seekers of Perl Wisdom
|
|