in reply to
Random email parsing
I definetely suggest you use a state machine. It'll help you with the maintenance of the parser in case the format changes (and chances are that it probably will).
Comment on
Re: Random email parsing
In Section
Seekers of Perl Wisdom