summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1997-11-22 09:48:02 +0000
committerGurusamy Sarathy <gsar@cpan.org>1997-11-22 09:48:02 +0000
commit0da4822f11e97ce202166899552c06d720eb835a (patch)
tree2a629ad4539739bcf6e0d9a49d8f52cbcc3a3196 /perly.y
parenta80f87c48e630b044cd5371d547b0f38e4476ec0 (diff)
downloadperl-0da4822f11e97ce202166899552c06d720eb835a.tar.gz
- shift() inside BEGIN|END|INIT now shifts @ARGV instead of @_
- added a test for the above - fixed up perly.c.diff and vms/perl_c.vms for above and added the ansification hunks p4raw-id: //depot/win32/perl@277
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index 481a2ccad6..fa0e0f5f59 100644
--- a/perly.y
+++ b/perly.y
@@ -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);
+ { CvUNIQUE_on(compcv); subline = -subline; }
$$ = $1; }
;