Okay, so the result for "five" isn't correct... looks like there really may be a bug somewhere.
This is a bug. The result for "five" should be "inner 1: five". The code reference is still in place, but the warn vector seems to be clobbered by the aliasing of %SIG inside the scope of the previous block. Commenting out the local %SIG; line makes the line warn "five\n"; work as expected.
Update: I filed a bug report. Thanks, Anonymous Monk.
In reply to Re^5:Localizing %SIG
by shmem
in thread Localizing %SIG
by Darkwing
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |