On Tue, 04 Jan 2005 18:05:46 -0300, Patricio Bruna V <[EMAIL PROTECTED]> wrote: > hi, > are any module that can parse text files with some definitions of > segment that i define? > > i have a file where the blocks starts with [foo] and last to the next > block. > > thx
The short answer is: yes, lots of them. most of them are designed for specific, standard instances of [foo], though (html, xml, MARc records, BSD fortunes, etc.). If you're working with a standard record type, do a cpan search, something will probably turn up. If all you need to do is read from one record separator to the next, though, you don't even need a module. Pull up 'perldoc perlvar' and have a look at the $/ variable. HTH, jay -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>