Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5:Localizing %SIG

by shmem (Chancellor)
on Feb 17, 2016 at 22:57 UTC ( [id://1155501]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Localizing %SIG
in thread Localizing %SIG

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'

Replies are listed 'Best First'.
Re^6: Localizing %SIG
by Anonymous Monk on Feb 18, 2016 at 08:25 UTC

    Thank you! BTW, delete local $SIG{...} appears to be similarly broken.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1155501]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-28 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found