summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-03-09 03:16:07 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-03-09 03:16:07 +0000
commit0244c3a403af2426ac6678d042024bb183ebbfa9 (patch)
tree40a351e091ccd9a2bb3b3161bc86da1768784ce2 /op.c
parentdce40276d967c484e2b36928ff656a2f5ac3647a (diff)
downloadperl-0244c3a403af2426ac6678d042024bb183ebbfa9.tar.gz
fix parsing of here documents in C<eval 's/.../<<FOO/e'>
p4raw-id: //depot/perl@3098
Diffstat (limited to 'op.c')
-rw-r--r--op.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/op.c b/op.c
index 88680579b8..220327ddca 100644
--- a/op.c
+++ b/op.c
@@ -2506,8 +2506,11 @@ pmruntime(OP *o, OP *expr, OP *repl)
if (repl) {
OP *curop;
- if (pm->op_pmflags & PMf_EVAL)
+ if (pm->op_pmflags & PMf_EVAL) {
curop = 0;
+ if (PL_curcop->cop_line < PL_multi_end)
+ PL_curcop->cop_line = PL_multi_end;
+ }
#ifdef USE_THREADS
else if (repl->op_type == OP_THREADSV
&& strchr("&`'123456789+",