diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-23 08:17:30 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-23 08:17:30 +0000 |
commit | 872465582bf743a066e1240f2c3e941735674827 (patch) | |
tree | 213664ae2c9b0a4f594b57eee46b5b4d457738aa /op.c | |
parent | 1ee987245c095afd177d3e2ca6255cec8dbb53ca (diff) | |
download | perl-872465582bf743a066e1240f2c3e941735674827.tar.gz |
fix localization in while BLOCK when there is a continue BLOCK
by introducing an explicit scope (c.f. change#4848)
p4raw-link: @4848 on //depot/perl: 1ee987245c095afd177d3e2ca6255cec8dbb53ca
p4raw-id: //depot/perl@4849
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3753,6 +3753,9 @@ Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP *loop, I32 whileline, OP * if (!block) block = newOP(OP_NULL, 0); + else if (cont) { + block = scope(block); + } if (cont) next = LINKLIST(cont); |