summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-08 18:35:48 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-08 18:35:48 +0000
commitfaa7e5bbaa1a624cf61859998ab6ab0a1323ed35 (patch)
tree517d38c6e942b647e70d697aa0ce84e049de56eb /op.c
parente4783991709775389a3fc70c841522b0165cd076 (diff)
downloadperl-faa7e5bbaa1a624cf61859998ab6ab0a1323ed35.tar.gz
do FILE should not see outside lexicals (from Rick Delaney
<rick@consumercontact.com>) p4raw-id: //depot/perl@5620
Diffstat (limited to 'op.c')
-rw-r--r--op.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/op.c b/op.c
index bc07904755..689fc18aba 100644
--- a/op.c
+++ b/op.c
@@ -356,8 +356,9 @@ S_pad_findlex(pTHX_ char *name, PADOFFSET newoff, U32 seq, CV* startcv,
if (CxREALEVAL(cx))
saweval = i;
break;
+ case OP_DOFILE:
case OP_REQUIRE:
- /* require must have its own scope */
+ /* require/do must have their own scope */
return 0;
}
break;