Hmmm .... 24576 bytes is really not what I'd call big. 24K, which would represent 0.009% of 256M RAM. I'd guess that merlyn's supposition does not actually apply, though I wouldn't be surprised if merlyn knows somthing I don't in this regard. I've parsed 100M+ files, breaking them into huge chunks (one scalar representing about 10M, 426 times the size of your token, for example) and never had a problem.

What is the exact error message? If you aren't getting one, you may want to try a trace with something like

strace -o my-script.out my-script.pl
and then read up from the bottom of my-script.out to see if there is anything in particular that strikes you just before you see the segfault signal. Just a suggestion ....

Hope this helps :-)

P.S. Question for merlyn if he checks back: What is the nibbling approach? I performed a search here and looked through my library, but couldn't find anything ....


In reply to Re: Parse::RecDescent size limit? by Anonymous Monk
in thread Parse::RecDescent size limit? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.