Sharan Basappa wrote: > > I am aware that a file descriptor needs to be opened etc. BTW, do you think > text-balanced can help in situations that are slightly more complex than I > described above. For example, if I have data like: > > keywordx id > some text > some text > { > more text > more text > } > > I would like to extract starting from keywordx till closing braces. > Add to this, there will be multiple instances of such code pieces in the > input I am trying to process. > > I looked at text-balanced but could not find anything that would help in doing > the above task.
No, I agree. It looks like the module could do what you want, but I doubt if it would be any better for your purpose than native Perl code and specifically the range operator. It is very hard to advise you properly without seeing the real data that you need to process. It looks like it may be C code, but I hope you can show a proper example before we help you any further. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/