but I'm curious what any other monks have to say or suggest about this feature. Can it still be something that I keep in my toolkit, or should I just assume that I'll need to stick with (?PARNO) from now on when I want recursion in a regex.

the (??{ code }) feature is available since perl 5.8, and still marked as experimental in 5.12. That's extraordinarily long, and the reason is that the feature did exhibit a multitude of problems. For example in 5.10 it wouldn't recognize say even if the feature was enabled, would segfault when you execute too much code in it and then reenter the regex engine, and had some nasty scoping bugs.

What I want to say is that it's really still experimental and unreliable. Whenever you've got the chance to use the (?PARNO) syntax instead, you should do it.


In reply to Re: (??{ code }) versus (?PARNO) for recursive regular expressions by moritz
in thread (??{ code }) versus (?PARNO) for recursive regular expressions by wind

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.