summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorSteve Grazzini <grazz@pobox.com>2003-08-04 12:01:45 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-08-04 21:30:25 +0000
commit8a8635f01e16b518b296d1f0397d3020c7e9c138 (patch)
tree953aa7bd87486920fa9e2c35b096941b8638b48f /toke.c
parent33f3c7b8444b48791ad016570a41a23483d750d2 (diff)
downloadperl-8a8635f01e16b518b296d1f0397d3020c7e9c138.tar.gz
Re: [perl #23210] parser error with 'print $HANDLE func(@args)'
Message-ID: <20030804200145.GB21699@grazzini.net> Prevent the warning "Bareword found where operator expected" in the case "print $fh foo()" where foo() is an undefined function. p4raw-id: //depot/perl@20480
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/toke.c b/toke.c
index 9d1fed2171..adc7d26822 100644
--- a/toke.c
+++ b/toke.c
@@ -3559,9 +3559,7 @@ Perl_yylex(pTHX)
}
}
else {
- GV *gv = gv_fetchpv(tmpbuf, FALSE, SVt_PVCV);
- if (gv && GvCVu(gv))
- PL_expect = XTERM; /* e.g. print $fh subr() */
+ PL_expect = XTERM; /* e.g. print $fh subr() */
}
}
else if (isDIGIT(*s))