This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op.c: Add op_folded to BASEOP
[perl5.git] / toke.c
diff --git a/toke.c b/toke.c
index a8ce485..2ab2a71 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -7393,6 +7393,7 @@ Perl_yylex(pTHX)
                        SvREFCNT_dec(((SVOP*)pl_yylval.opval)->op_sv);
                        ((SVOP*)pl_yylval.opval)->op_sv = SvREFCNT_inc_simple(sv);
                        pl_yylval.opval->op_private = OPpCONST_FOLDED;
+                       pl_yylval.opval->op_folded = 1;
                        pl_yylval.opval->op_flags |= OPf_SPECIAL;
                        TOKEN(WORD);
                    }