summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-12-04 04:24:32 -0800
committerFather Chrysostomos <sprout@cpan.org>2013-12-04 04:41:35 -0800
commit29da91af2e92d8444a7b9f6dcc93d151677c3a51 (patch)
tree8ce80a9ebc299d11b2fd73d42473d3bbce7b3f1f /toke.c
parent2cb1ad0a6b296a4da159144909674fb99896c236 (diff)
downloadperl-29da91af2e92d8444a7b9f6dcc93d151677c3a51.tar.gz
toke.c: Pass GV_NOTQUAL for override lookup
We know in this code path that the name is unqualified, so tell gv_fetchpvn_flags to skip the parser that looks for package separators.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 6e30000aa4..b146cdcb3f 100644
--- a/toke.c
+++ b/toke.c
@@ -7112,7 +7112,8 @@ Perl_yylex(pTHX)
if (PL_expect != XOPERATOR && (*s != ':' || s[1] != ':')) {
CV *cv;
if ((gv = gv_fetchpvn_flags(PL_tokenbuf, len,
- UTF ? SVf_UTF8 : 0, SVt_PVCV)) &&
+ (UTF ? SVf_UTF8 : 0)|GV_NOTQUAL,
+ SVt_PVCV)) &&
(cv = GvCVu(gv)))
{
if (GvIMPORTED_CV(gv))