good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
RE: Turning a datafile into a data structureby JanneVee (Friar) |
on Jun 30, 2000 at 15:11 UTC ( [id://20578]=note: print w/replies, xml ) | Need Help?? |
Basicly the advice about RecDescent module is the best. You aren't exactly approaching it in the wrong way. Important things to remember are things like error_handling. i.e. in your example or if you have items in items. then you must handle which end belongs to which begin! Some of these things that one must think of you get for "free" using the module that davorg suggested...
In Section
Seekers of Perl Wisdom
|
|