diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-23 07:32:24 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-23 07:32:24 +0000 |
commit | 977336f534851e24a2161d3011e030ea4043a2ae (patch) | |
tree | 07beb54d20d60e02081f980535a2c7bb65bc07b0 /perly.y | |
parent | 0da4822f11e97ce202166899552c06d720eb835a (diff) | |
download | perl-977336f534851e24a2161d3011e030ea4043a2ae.tar.gz |
Add to docs about the BEGIN { shift } feature. Make the change
yet simpler using CvUNIQUE(compcv) instead of subline (Chip's idea).
p4raw-id: //depot/win32/perl@284
Diffstat (limited to 'perly.y')
-rw-r--r-- | perly.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -291,7 +291,7 @@ startformsub: /* NULL */ /* start a format subroutine scope */ subname : WORD { char *name = SvPV(((SVOP*)$1)->op_sv, na); if (strEQ(name, "BEGIN") || strEQ(name, "END") || strEQ(name, "INIT")) - { CvUNIQUE_on(compcv); subline = -subline; } + CvUNIQUE_on(compcv); $$ = $1; } ; |