diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-18 21:41:57 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-18 21:41:57 +0000 |
commit | 1aff0e911b5282f0638dc0d8199ffa4edf98f89c (patch) | |
tree | 739e6a5e7e8b085c24d38adf5e1dcd0975de78da /perly.y | |
parent | 08cdc9a35d157219f769511762b78adf22ca040a (diff) | |
download | perl-1aff0e911b5282f0638dc0d8199ffa4edf98f89c.tar.gz |
distinguish eval'' from BEGIN|INIT|END CVs (fixes buggy propagation
of lexical searches in BEGIN|INIT|END)
p4raw-id: //depot/perl@2975
Diffstat (limited to 'perly.y')
-rw-r--r-- | perly.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -307,7 +307,7 @@ startformsub: /* NULL */ /* start a format subroutine scope */ subname : WORD { STRLEN n_a; char *name = SvPV(((SVOP*)$1)->op_sv,n_a); if (strEQ(name, "BEGIN") || strEQ(name, "END") || strEQ(name, "INIT")) - CvUNIQUE_on(PL_compcv); + CvSPECIAL_on(PL_compcv); $$ = $1; } ; @@ -327,7 +327,7 @@ package : PACKAGE WORD ';' ; use : USE startsub - { CvUNIQUE_on(PL_compcv); /* It's a BEGIN {} */ } + { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ } WORD WORD listexpr ';' { utilize($1, $2, $4, $5, $6); } ; |