diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-28 22:05:31 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-28 22:05:31 +0000 |
commit | 81885997fc84bc746ce89b42ef68a78568f56f01 (patch) | |
tree | 48cad49be77b92a9e6ea25b85057c40b5a90b32a /op.c | |
parent | be98fb356a796bbf223f55e771e6c04069c84d0d (diff) | |
download | perl-81885997fc84bc746ce89b42ef68a78568f56f01.tar.gz |
glob() loading File::Glob behind the scenes may cause syntax errors
p4raw-id: //depot/perl@6014
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -3225,8 +3225,15 @@ Perl_vload_module(pTHX_ U32 flags, SV *name, SV *ver, va_list *args) sv = va_arg(*args, SV*); } } - utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(FALSE, 0), - veop, modname, imop); + { + line_t ocopline = PL_copline; + int oexpect = PL_expect; + + utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(FALSE, 0), + veop, modname, imop); + PL_expect = oexpect; + PL_copline = ocopline; + } } OP * |