From 8b9fb2f9f022bfdeca1048b3797b844142826a9c Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Fri, 5 Dec 2014 21:41:30 -0800 Subject: Deparse formats in the right spot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Formats need the same logic applied in 34b54951568, to avoid this: Input: { my $x; format STDOUT = @ $x . } __END__ $ pbpaste|./perl -Ilib -MO=Deparse { my $x; } format STDOUT = @ $x . __DATA__ - syntax OK That $x in the format is now global, not lexical. Also, we need to make sure the sequence numbers are correct. The statement after the format stopped having a higher sequence number than CvOUTSIDE_SEQ(format) in 8635e3c238f, because the ‘pending’ sequence number set aside for the nextstate op created just after com- pile-time block exit (which nextstate op comes before the block) was not actually being used by newFORM (unlike newATTRSUB), so the follow- ing statement was using that number. --- perly.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perly.h') diff --git a/perly.h b/perly.h index b458b2385c..90565cd564 100644 --- a/perly.h +++ b/perly.h @@ -256,6 +256,6 @@ typedef union YYSTYPE /* Generated from: - * 7c925861de53b976298e1b6e79a731de2d11247fd3db73f423cba0fd8c2e1afe perly.y + * 483e652a7d8fe19f0ca9b30539b01d530f0fa872a8b4cfab025c589aa581d7d2 perly.y * d1d4df7b8e30ac9dede664af9179e6e5e7ddc7f2ad9c4eff9e2e5b32c9e16a6e regen_perly.pl * ex: set ro: */ -- cgit v1.2.1