diff options
author | Rafael Garcia-Suarez <rgs@consttype.org> | 2015-03-05 17:37:33 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2015-03-05 17:37:33 +0100 |
commit | 0f6f92e0b139f81313e47d8eb6d0c323dfd77b62 (patch) | |
tree | 97fb1dbf08c6bdae349c39402b8c0f2554958cf6 /op.c | |
parent | 2b5060aeb95612aea17de446e9d72793e28bf8a9 (diff) | |
download | perl-0f6f92e0b139f81313e47d8eb6d0c323dfd77b62.tar.gz |
readline should behave as <>, not <<>>
This fixes bug #123990. The cause was that one promotion to
OP_READLINE was not cleaning the special flag on that op.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10334,7 +10334,7 @@ Perl_ck_readline(pTHX_ OP *o) } else { OP * const newop - = newUNOP(OP_READLINE, o->op_flags | OPf_SPECIAL, newGVOP(OP_GV, 0, PL_argvgv)); + = newUNOP(OP_READLINE, 0, newGVOP(OP_GV, 0, PL_argvgv)); op_free(o); return newop; } |