summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-04-28 22:05:31 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-04-28 22:05:31 +0000
commit81885997fc84bc746ce89b42ef68a78568f56f01 (patch)
tree48cad49be77b92a9e6ea25b85057c40b5a90b32a /op.c
parentbe98fb356a796bbf223f55e771e6c04069c84d0d (diff)
downloadperl-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.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/op.c b/op.c
index 681efae814..3275d0eabf 100644
--- a/op.c
+++ b/op.c
@@ -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 *