in reply to Parsing multi-line blocks

It depends what you mean by 'parse'. I'm guessing that you wish to read each block as one record, then split the fields. Just set local $/='}'; then read the file in the usual way: each block will be one record. Then you can split around "\n" to get the fields.

Replies are listed 'Best First'.
Re^2: Parsing multi-line blocks
by sschneid (Deacon) on Nov 13, 2007 at 16:46 UTC
    Thanks! I'd begun building something that parsed tokens based on $/, but didn't know if there was already a module somewhere that would save me from having to reinvent wheels, etc!