From 97403567487a921b6ba6321511dbba365e3c6554 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Mon, 25 Nov 2024 21:52:23 +0000 Subject: [PATCH] toke.c: Expect XBLOCK after ALLSTART/ANYSTART, so as to avoid the block-or-hashref ambiguity --- toke.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toke.c b/toke.c index bbf50fad893d..dc2239e76a31 100644 --- a/toke.c +++ b/toke.c @@ -8001,7 +8001,7 @@ yyl_word_or_keyword(pTHX_ char *s, STRLEN len, I32 key, I32 orig_keyword, struct case KEY_all: Perl_ck_warner_d(aTHX_ packWARN(WARN_EXPERIMENTAL__ANY_ALL), "all is experimental"); - LOP(OP_ALLSTART, XREF); + LOP(OP_ALLSTART, XBLOCK); case KEY_and: if (!PL_lex_allbrackets && PL_lex_fakeeof >= LEX_FAKEEOF_LOWLOGIC) @@ -8011,7 +8011,7 @@ yyl_word_or_keyword(pTHX_ char *s, STRLEN len, I32 key, I32 orig_keyword, struct case KEY_any: Perl_ck_warner_d(aTHX_ packWARN(WARN_EXPERIMENTAL__ANY_ALL), "any is experimental"); - LOP(OP_ANYSTART, XREF); + LOP(OP_ANYSTART, XBLOCK); case KEY_atan2: LOP(OP_ATAN2,XTERM);