Is there an easy way to chunk a text file into brace-balanced sections?

前端 未结 3 1743
暖寄归人
暖寄归人 2021-01-22 11:04

I\'m trying to parse some data out of a file using Perl & Parse::RecDescent. I can\'t throw the full data file at the perl script because RecDescent will take days poring o

3条回答
  •  悲&欢浪女
    2021-01-22 11:58

    Show what you are feeding Parse::RecDescent; it may be possible to make it much better.

    Or you could try using Text::Balanced to parse the { ... }.

提交回复
热议问题