This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(??{ }) anomaly
authorYitzchak Scott-Thoennes <sthoenna@efn.org>
Sun, 3 Feb 2002 20:21:45 +0000 (12:21 -0800)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 4 Feb 2002 13:30:55 +0000 (13:30 +0000)
Message-ID: <ZxgX8gzkgCXO092yn@efn.org>

p4raw-id: //depot/perl@14547

regcomp.c

index 2283d10..7850492 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -2168,6 +2168,8 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp)
                /* FALL THROUGH*/
            case '?':           /* (??...) */
                logical = 1;
+               if (*RExC_parse != '{')
+                   goto unknown;
                paren = *RExC_parse++;
                /* FALL THROUGH */
            case '{':           /* (?{...}) */