Perl Monk, Perl Meditation | |
PerlMonks |
Re: Issue in parsing data from fileby roboticus (Chancellor) |
on Aug 08, 2019 at 13:19 UTC ( [id://11104174]=note: print w/replies, xml ) | Need Help?? |
When you have a structured file containing master and detail records, you typically collect all your data until you reach the next master record. At that point, you can process all the data (master and detail) for the previous master record. Something like:
This is "control break" processing. You can extend it to have multiple levels if needed. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|