http://qs321.pair.com?node_id=11100328


in reply to Re^6: processing file content as string vs array
in thread processing file content as string vs array

I don't want to get into a big argument. My purpose was to show TMTOWTDI.
I do not claim that the approach I demo'ed works best for all cases.
I think knowledge of multiple ways to implement this result is a good idea.
I do agree that a state machine approach can handle much more complicated formats than in this example.
Most of the formats I deal with are less complex (thank goodness!) and do not require a state_machine approach.