diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-08 18:35:48 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-08 18:35:48 +0000 |
commit | faa7e5bbaa1a624cf61859998ab6ab0a1323ed35 (patch) | |
tree | 517d38c6e942b647e70d697aa0ce84e049de56eb /pp_ctl.c | |
parent | e4783991709775389a3fc70c841522b0165cd076 (diff) | |
download | perl-faa7e5bbaa1a624cf61859998ab6ab0a1323ed35.tar.gz |
do FILE should not see outside lexicals (from Rick Delaney
<rick@consumercontact.com>)
p4raw-id: //depot/perl@5620
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2727,8 +2727,11 @@ S_doeval(pTHX_ int gimme, OP** startop) av_store(comppadlist, 1, (SV*)PL_comppad); CvPADLIST(PL_compcv) = comppadlist; - if (!saveop || saveop->op_type != OP_REQUIRE) + if (!saveop || + (saveop->op_type != OP_REQUIRE && saveop->op_type != OP_DOFILE)) + { CvOUTSIDE(PL_compcv) = (CV*)SvREFCNT_inc(caller); + } SAVEFREESV(PL_compcv); |