X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/5464dbd2048d8302bcdad7ae68f0e2c0042bc78f..4aed9cd610b68b42d2ca70e53e7024f7e3fa8b43:/toke.c diff --git a/toke.c b/toke.c index 9d1fed2..aa20096 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)) @@ -6998,7 +6996,7 @@ S_scan_str(pTHX_ char *start, int keep_quoted, int keep_delims) goto read_more_line; else { /* handle quoted delimiters */ - if (*(svlast-1) == '\\') { + if (SvCUR(sv) > 1 && *(svlast-1) == '\\') { char *t; for (t = svlast-2; t >= SvPVX(sv) && *t == '\\';) t--;