No such thing as a small change | |
PerlMonks |
Re^5:Localizing %SIGby shmem (Chancellor) |
on Feb 17, 2016 at 22:57 UTC ( [id://1155501]=note: print w/replies, xml ) | Need Help?? |
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.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|